Re: S2.1.8.1: Need something similar to struts.el.throwExceptionOnFailure for and

2009-12-02 Thread Dale Newfield
Robert Graf-Waczenski wrote: Musachy Barroso wrote: so setting doesnt fail? No, it doesn't fail, the text input field is rendered with empty contents. That is the appropriate way for it to render if the property is indeed missing. Is a warning generated in your logs? -Dale ---

Re: S2.1.8.1: Need something similar to struts.el.throwExceptionOnFailure for and

2009-12-02 Thread Robert Graf-Waczenski
Dale Newfield schrieb: so setting doesnt fail? No, it doesn't fail, the text input field is rendered with empty contents. That is the appropriate way for it to render if the property is indeed missing. Is a warning generated in your logs? I would not call this appropriate. It should b

Re: S2.1.8.1: Need something similar to struts.el.throwExceptionOnFailure for and

2009-12-02 Thread Dale Newfield
Robert Graf-Waczenski wrote: which correctly yields a runtime error Unless you're in devMode, I don't want anything yielding a runtime error, I want it to proceed as best it can, and let me know so I can address any potential issue (the logging is a step forward from earlier versions where

Re: S2.1.8.1: Need something similar to struts.el.throwExceptionOnFailure for and

2009-12-02 Thread Robert Graf-Waczenski
Dale Newfield schrieb: Robert Graf-Waczenski wrote: which correctly yields a runtime error Unless you're in devMode, I don't want anything yielding a runtime error, I want it to proceed as best it can, and let me know so I can address any potential issue (the logging is a step forward from

Convention Plugin & Global Results

2009-12-02 Thread RogerV
If I have global results correctly configured - should they appear when I examine my app, which uses the convention plugin, with config-browser/index.action? -- View this message in context: http://old.nabble.com/Convention-Plugin---Global-Results-tp26606826p26606826.html Sent from the Struts -

Parameters after the action name, annotation based config not working

2009-12-02 Thread Illes, Szabolcs
Hi All, I'd like to report a possible bug in struts2 annotation based action mapping: I wanted to have slashes in my action names and use them as parameters (REST style service) For example: The action name is /opds/0028-0838/2009 and is mapped to EPubOPDSAction The problem is

Re: Help me design this struts, please

2009-12-02 Thread emil thushanga
Do you know how to setup initial project files you want, This may be helpful to you if you very basic = mvn archetype:create -DgroupId=org.apache.struts -DartifactId=struts2-archetype-starter -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archety

S2 Type conversion error and validation problem

2009-12-02 Thread Marsman
Hi! after a type conversion error, Struts goes on in the interceptor stack and validates the empty action property with useless results. How can I avoid this? (I'm using the default interceptor stack.) And how can I avoid the NoSuchMethodException thrown every time a user enters invalid alphanume

Re: Upgrade 2.1.6 to 2.1.8.1, cause empty tag?

2009-12-02 Thread Brian Thompson
Link -Brian On Wed, Dec 2, 2009 at 1:40 AM, Henry Jen wrote: > 2009/12/1 Saeed Iqbal : > > It totally depends on your needs. > > > > The only reason we would like to use is that we want to use OGNL > in href. For example, > > Link > > If we can use would be cleaner. Any suggestion? > > Cheers

Re: Upgrade 2.1.6 to 2.1.8.1, cause empty tag?

2009-12-02 Thread Brian Thompson
Oops, that should have been this: ">Link Closing the tag is always a good idea. -Brian On Wed, Dec 2, 2009 at 9:11 AM, Brian Thompson wrote: > Link > > -Brian > > > On Wed, Dec 2, 2009 at 1:40 AM, Henry Jen wrote: > >> 2009/12/1 Saeed Iqbal : >> > It totally depends on your needs. >> > >> >

Re: Upgrade 2.1.6 to 2.1.8.1, cause empty tag?

2009-12-02 Thread Saeed Iqbal
Yes thats right On Wednesday, December 2, 2009, Brian Thompson wrote: > Link > > -Brian > > On Wed, Dec 2, 2009 at 1:40 AM, Henry Jen wrote: > >> 2009/12/1 Saeed Iqbal : >> > It totally depends on your needs. >> > >> >> The only reason we would like to use is that we want to use OGNL >> in href

Re: S2.1.8.1: Need something similar to struts.el.throwExceptionOnFailure for and

2009-12-02 Thread Dale Newfield
Robert Graf-Waczenski wrote: This is not a bug, it's a feature in Struts2 2.1.8.1 that you explicitly have to enable via a configuration option (which is what we did). Oh! My bad. You're right, that could be a useful feature given certain policies, I'm glad it's now there for those that want

[S2] xhtml theme freemarker syntax

2009-12-02 Thread mailtolouis2020-struts
Hi, I'm trying to modify xhtml theme to suite our need, but I'm not familiar with freemarker. Could someone explain these few tags mean? <#rt/> <#lt/> <#t/> Regards LV

Upgrade 2.1.6 to 2.1.8.1

2009-12-02 Thread Gustavo Andrés Guevara Saavedra
Hi, I've just migrated my app. from Struts 2.1.6 to 2.1.8.1. The application worked fine but now throws the following exception upon launching the server: Unable to load configuration. - bean - jar:file:/C:/Yazix/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/front_

Re: Upgrade 2.1.6 to 2.1.8.1

2009-12-02 Thread Saeed Iqbal
This looks like a classpath issue On Wednesday, December 2, 2009, Gustavo Andrés Guevara Saavedra wrote: > Hi, > > I've just migrated my app. from Struts 2.1.6 to 2.1.8.1. The application > worked fine but now throws the following exception upon launching the server: > > Unable to load configura

Re: Upgrade 2.1.6 to 2.1.8.1

2009-12-02 Thread Musachy Barroso
make sure you dont have 2 versions of xwork. musachy On Wed, Dec 2, 2009 at 8:50 AM, Saeed Iqbal wrote: > This looks like a classpath issue > > On Wednesday, December 2, 2009, Gustavo Andrés Guevara Saavedra > wrote: >> Hi, >> >> I've just migrated my app. from Struts 2.1.6 to 2.1.8.1. The appl

Re: Upgrade 2.1.6 to 2.1.8.1

2009-12-02 Thread Saeed Iqbal
If you are using maven do a dependency:tree and exclude redundant packages On Wednesday, December 2, 2009, Musachy Barroso wrote: > make sure you dont have 2 versions of xwork. > > musachy > > On Wed, Dec 2, 2009 at 8:50 AM, Saeed Iqbal wrote: >> This looks like a classpath issue >> >> On Wednes

How to get the key name

2009-12-02 Thread Louis Voo
Hi, I've this text field in my jsp and this property in the resource bundle error.required = ${getText(fieldName)} is required. label.name = Name When there is validation error, it looking for user.name property, it is fine because I'm using fieldName, so my question is there anyway I can g

blank app under jetty7

2009-12-02 Thread Milos Negovanovic
Hi, I am trying to get blank app to work under jetty7. At startup I get this error: http://pastie.org/723875 Anyone seen this before? What am I missing? Regards -- Milos Negovanovic milos.negovano...@googlemail.com - To unsub

Re: How to get the key name

2009-12-02 Thread Siddiq Syed
Try this, -siddiq. Louis Voo wrote: > > Hi, > > I've this text field in my jsp > > required="true"/> > > and this property in the resource bundle > > error.required = ${getText(fieldName)} is required. > label.name = Name > > > When there is validation error, it looking for user.name

Re: blank app under jetty7

2009-12-02 Thread Musachy Barroso
I tried an app in jetty 7 yesterday and had the same problem, using my amazing laziness skills I switched to jetty 6 and it worked, so I just blamed it on jetty and moved on :) musachy On Wed, Dec 2, 2009 at 10:19 AM, Milos Negovanovic wrote: > Hi, > > I am trying to get blank app to work under

Re: blank app under jetty7

2009-12-02 Thread Dale Newfield
Milos Negovanovic wrote: http://pastie.org/723875 Says: > Caused by: java.lang.ClassNotFoundException: > javax.servlet.jsp.JspWriter So, is there a .jar in your application's classpath that contains this? -Dale - To unsubscr

Re: blank app under jetty7

2009-12-02 Thread Milos Negovanovic
On Wed, Dec 02, 2009 at 01:38:34PM -0500, Dale Newfield wrote: > Milos Negovanovic wrote: > >http://pastie.org/723875 > > Says: > > Caused by: java.lang.ClassNotFoundException: > > javax.servlet.jsp.JspWriter > > So, is there a .jar in your application's classpath that contains this? Which jar w

Re: blank app under jetty7

2009-12-02 Thread Dale Newfield
Milos Negovanovic wrote: javax.servlet.jsp.JspWriter Which jar would that be? I have all jars distributed with jetty7 and struts2 by default. I don't know which servlet api you're using. 2.3: jsp-api.jar 2.5: jsp-api-2.0.jar 2.4: I don't know, but I would guess that "jsp" and "api" are in the

Re: blank app under jetty7

2009-12-02 Thread Milos Negovanovic
On Wed, Dec 02, 2009 at 02:04:01PM -0500, Dale Newfield wrote: > Milos Negovanovic wrote: > >>>javax.servlet.jsp.JspWriter > > > >Which jar would that be? I have all jars distributed with jetty7 and > >struts2 by default. > > I don't know which servlet api you're using. > 2.3: jsp-api.jar > 2.5: j

Re: comparing in validation.xml file

2009-12-02 Thread Greg Lindholm
If you look at the Validation Guide [1] you will find a link at the bottom for WebWork Validation [2] which shows this example for comparing passwords. user.password.equals(user.confirmPassword) [1] http://struts.apache.org/2.x/d

Re: [S2] xhtml theme freemarker syntax

2009-12-02 Thread Greg Lindholm
Easy to find in the Freemarker docs. http://freemarker.org/docs/ref_directive_t.html On Wed, Dec 2, 2009 at 10:47 AM, wrote: > Hi, > > I'm trying to modify xhtml theme to suite our need, but I'm not familiar with > freemarker. Could someone explain these few tags mean? > > <#rt/> > <#lt/> > <#

Re: How to get the key name

2009-12-02 Thread Saeed Iqbal
You use the key attribute instead of label On Wednesday, December 2, 2009, Siddiq Syed wrote: > > Try this, > > > > > -siddiq. > > > Louis Voo wrote: >> >> Hi, >> >> I've this text field in my jsp >> >> > required="true"/> >> >> and this property in the resource bundle >> >> error.required = ${

Re: blank app under jetty7

2009-12-02 Thread Saeed Iqbal
Congrats :) On Thursday, December 3, 2009, Milos Negovanovic wrote: > On Wed, Dec 02, 2009 at 02:04:01PM -0500, Dale Newfield wrote: >> Milos Negovanovic wrote: >> >>>javax.servlet.jsp.JspWriter >> > >> >Which jar would that be? I have all jars distributed with jetty7 and >> >struts2 by default.