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

2009-12-02 Thread Dale Newfield
Robert Graf-Waczenski wrote: Musachy Barroso wrote: so setting s:textfield value=%{missingProperty}/ 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

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

2009-12-02 Thread Robert Graf-Waczenski
Dale Newfield schrieb: so setting s:textfield value=%{missingProperty}/ 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

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

2009-12-02 Thread Dale Newfield
Robert Graf-Waczenski wrote: s:property value=%{missingProperty}/ 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

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

2009-12-02 Thread Robert Graf-Waczenski
Dale Newfield schrieb: Robert Graf-Waczenski wrote: s:property value=%{missingProperty}/ 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

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

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

Re: Upgrade 2.1.6 to 2.1.8.1, s:a cause empty a / tag?

2009-12-02 Thread Brian Thompson
a href=s:property value=%{#some_var_s:url}Link/a -Brian On Wed, Dec 2, 2009 at 1:40 AM, Henry Jen henry...@ztune.net wrote: 2009/12/1 Saeed Iqbal saee...@gmail.com: It totally depends on your needs. The only reason we would like to use s:a is that we want to use OGNL in href. For

Re: Upgrade 2.1.6 to 2.1.8.1, s:a cause empty a / tag?

2009-12-02 Thread Brian Thompson
Oops, that should have been this: a href=s:property value=%{#some_var_s:url}/Link/a Closing the tag is always a good idea. -Brian On Wed, Dec 2, 2009 at 9:11 AM, Brian Thompson elephant...@gmail.comwrote: a href=s:property value=%{#some_var_s:url}Link/a -Brian On Wed, Dec 2, 2009 at

Re: Upgrade 2.1.6 to 2.1.8.1, s:a cause empty a / tag?

2009-12-02 Thread Saeed Iqbal
Yes thats right On Wednesday, December 2, 2009, Brian Thompson elephant...@gmail.com wrote: a href=s:property value=%{#some_var_s:url}Link/a -Brian On Wed, Dec 2, 2009 at 1:40 AM, Henry Jen henry...@ztune.net wrote: 2009/12/1 Saeed Iqbal saee...@gmail.com: It totally depends on your

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

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

[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 -

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 g.guev...@i-deal.hu 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

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 saee...@gmail.com wrote: This looks like a classpath issue On Wednesday, December 2, 2009, Gustavo Andrés Guevara Saavedra g.guev...@i-deal.hu wrote: Hi, I've just migrated my app. from Struts

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 musa...@gmail.com wrote: make sure you dont have 2 versions of xwork. musachy On Wed, Dec 2, 2009 at 8:50 AM, Saeed Iqbal saee...@gmail.com wrote: This looks like a

How to get the key name

2009-12-02 Thread Louis Voo
Hi, I've this text field in my jsp s:textfield key=label.name name=user.name maxlength=35 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 property, it is

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

Re: How to get the key name

2009-12-02 Thread Siddiq Syed
Try this, s:text name=label.name / s:textfield name=user.name maxlength=35 required=true/ -siddiq. Louis Voo wrote: Hi, I've this text field in my jsp s:textfield key=label.name name=user.name maxlength=35 required=true/ and this property in the resource bundle error.required

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 milos.negovano...@googlemail.com wrote: Hi, I am trying

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

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 would that

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: jsp-api-2.0.jar

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. field name=user.password field-validator type=requiredstring message key=user.password.empty/ /field-validator /field field

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, mailtolouis2020-str...@yahoo.com 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

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 siddiq...@yahoo.com wrote: Try this, s:text name=label.name / s:textfield name=user.name maxlength=35 required=true/ -siddiq. Louis Voo wrote: Hi, I've this text field in my jsp s:textfield

Re: blank app under jetty7

2009-12-02 Thread Saeed Iqbal
Congrats :) On Thursday, December 3, 2009, Milos Negovanovic milos.negovano...@googlemail.com 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