Failed validation returns Action.NONE instead of Action.INPUT in Struts 2.2.3
Hi, Is anyone else experiencing this? I posted a JIRA issue some time ago at https://issues.apache.org/jira/browse/WW-3654 - but since noone else has reported problems with this (that I can see) I'm wondering if it's me doing something wrong? -- View this message in context: http://struts.1045723.n5.nabble.com/Failed-validation-returns-Action-NONE-instead-of-Action-INPUT-in-Struts-2-2-3-tp4618385p4618385.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Failed validation returns Action.NONE instead of Action.INPUT in Struts 2.2.3
It'd be easier to diagnose/discuss if we knew more about your config/etc. Dave On Thursday, July 21, 2011, christoe christof...@enqvi.st wrote: Hi, Is anyone else experiencing this? I posted a JIRA issue some time ago at https://issues.apache.org/jira/browse/WW-3654 - but since noone else has reported problems with this (that I can see) I'm wondering if it's me doing something wrong? -- View this message in context: http://struts.1045723.n5.nabble.com/Failed-validation-returns-Action-NONE-instead-of-Action-INPUT-in-Struts-2-2-3-tp4618385p4618385.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Failed validation returns Action.NONE instead of Action.INPUT in Struts 2.2.3
I think the JIRA issue explains the general setup quite well: After upgrading from 2.2.1.1 to 2.2.3 input validation fails (i.e. invalid input values), and returns Action.NONE instead of Action.INPUT. Log (TRACE-level) doesn't show anything interesting. Completely removing result-definition does not result in result not defined-error. Downgrading to 2.2.1.1 fixes the problem again. Action/Controller extends ActionSupport and implements ModelDriven. Results are defined using annotations. After debugging the Struts2-code it seems as if result is null at line 295 in RestActionInvocation.java. I'm using both self written validators and standard validators for validating form input (in a jsp). But when validation fails, instead of returning Action.INPUT which would return the user to the form while displaying error messages - the validation results in Action.NONE which and thus a blank page. I realised that this only occurs in Struts 2.2.3. I guess the question is; was something changed in the validation code between Struts version 2.2.1.1 and 2.2.3 that I need to handle? //Christoffer Dave Newton-6 wrote: It'd be easier to diagnose/discuss if we knew more about your config/etc. Dave On Thursday, July 21, 2011, christoe lt;christof...@enqvi.stgt; wrote: Hi, Is anyone else experiencing this? I posted a JIRA issue some time ago at https://issues.apache.org/jira/browse/WW-3654 - but since noone else has reported problems with this (that I can see) I'm wondering if it's me doing something wrong? -- View this message in context: http://struts.1045723.n5.nabble.com/Failed-validation-returns-Action-NONE-instead-of-Action-INPUT-in-Struts-2-2-3-tp4618385p4618385.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://struts.1045723.n5.nabble.com/Failed-validation-returns-Action-NONE-instead-of-Action-INPUT-in-Struts-2-2-3-tp4618385p4619113.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Failed validation returns Action.NONE instead of Action.INPUT in Struts 2.2.3
What interceptor stack are you using? Maurizio Cucchiara Il giorno 21/lug/2011 13.56, christoe christof...@enqvi.st ha scritto: I think the JIRA issue explains the general setup quite well: After upgrading from 2.2.1.1 to 2.2.3 input validation fails (i.e. invalid input values), and returns Action.NONE instead of Action.INPUT. Log (TRACE-level) doesn't show anything interesting. Completely removing result-definition does not result in result not defined-error. Downgrading to 2.2.1.1 fixes the problem again. Action/Controller extends ActionSupport and implements ModelDriven. Results are defined using annotations. After debugging the Struts2-code it seems as if result is null at line 295 in RestActionInvocation.java. I'm using both self written validators and standard validators for validating form input (in a jsp). But when validation fails, instead of returning Action.INPUT which would return the user to the form while displaying error messages - the validation results in Action.NONE which and thus a blank page. I realised that this only occurs in Struts 2.2.3. I guess the question is; was something changed in the validation code between Struts version 2.2.1.1 and 2.2.3 that I need to handle? //Christoffer Dave Newton-6 wrote: It'd be easier to diagnose/discuss if we knew more about your config/etc. Dave On Thursday, July 21, 2011, christoe lt;christof...@enqvi.stgt; wrote: Hi, Is anyone else experiencing this? I posted a JIRA issue some time ago at https://issues.apache.org/jira/browse/WW-3654 - but since noone else has reported problems with this (that I can see) I'm wondering if it's me doing something wrong? -- View this message in context: http://struts.1045723.n5.nabble.com/Failed-validation-returns-Action-NONE-instead-of-Action-INPUT-in-Struts-2-2-3-tp4618385p4618385.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://struts.1045723.n5.nabble.com/Failed-validation-returns-Action-NONE-instead-of-Action-INPUT-in-Struts-2-2-3-tp4618385p4619113.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Failed validation returns Action.NONE instead of Action.INPUT in Struts 2.2.3
I'm using the restDefaultStack together with my AuthenticationInterceptor (which only checks for a token on the session and when inexistent sends the user to login): interceptor-stack name=authenticationStack interceptor-ref name=restDefaultStack / interceptor-ref name=authenticationInterceptor / /interceptor-stack //Christoffer Maurizio Cucchiara wrote: What interceptor stack are you using? Maurizio Cucchiara Il giorno 21/lug/2011 13.56, christoe lt;christof...@enqvi.stgt; ha scritto: I think the JIRA issue explains the general setup quite well: After upgrading from 2.2.1.1 to 2.2.3 input validation fails (i.e. invalid input values), and returns Action.NONE instead of Action.INPUT. Log (TRACE-level) doesn't show anything interesting. Completely removing result-definition does not result in result not defined-error. Downgrading to 2.2.1.1 fixes the problem again. Action/Controller extends ActionSupport and implements ModelDriven. Results are defined using annotations. After debugging the Struts2-code it seems as if result is null at line 295 in RestActionInvocation.java. I'm using both self written validators and standard validators for validating form input (in a jsp). But when validation fails, instead of returning Action.INPUT which would return the user to the form while displaying error messages - the validation results in Action.NONE which and thus a blank page. I realised that this only occurs in Struts 2.2.3. I guess the question is; was something changed in the validation code between Struts version 2.2.1.1 and 2.2.3 that I need to handle? //Christoffer Dave Newton-6 wrote: It'd be easier to diagnose/discuss if we knew more about your config/etc. Dave On Thursday, July 21, 2011, christoe lt;christof...@enqvi.stgt; wrote: Hi, Is anyone else experiencing this? I posted a JIRA issue some time ago at https://issues.apache.org/jira/browse/WW-3654 - but since noone else has reported problems with this (that I can see) I'm wondering if it's me doing something wrong? -- View this message in context: http://struts.1045723.n5.nabble.com/Failed-validation-returns-Action-NONE-instead-of-Action-INPUT-in-Struts-2-2-3-tp4618385p4618385.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://struts.1045723.n5.nabble.com/Failed-validation-returns-Action-NONE-instead-of-Action-INPUT-in-Struts-2-2-3-tp4618385p4619113.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://struts.1045723.n5.nabble.com/Failed-validation-returns-Action-NONE-instead-of-Action-INPUT-in-Struts-2-2-3-tp4618385p4619151.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
OGNL Problems During Struts2 Upgrade
Hello, We are attempting to upgrade our application from Struts2 version 2.0.11.2 to the current version, 2.2.3. As part of the upgrade, OGNL was upgraded from version 2.7.3 to version 3.0.1. Our JSPs make use of OGNL to call static methods on classes to help with formatting. Here's an example: s:property value=@com.example.DateUtils@toDate(promotion.startDate) / The DateUtils class has a static toDate method that takes in the passed in promotion.startDate object (which is likely a java.sql.Date) and converts it to a java.util.Date. It does that so that s:property can properly and uniformly format the date for display. This had worked before the upgrade from 2.0.11.2 to 2.2.3. After the upgrade, it no longer works and the s:property tag doesn't output anything. I put some logging statements in the toDate method and it looks like the toDate method is never being called in the first place. One thing to note is that the DateUtils has two overloaded static toDate methods: one that takes a String, and the other that takes a Date (or one of its subclasses). This doesn't seem to make any difference as I've tried changing the method name (and the corresponding OGNL expression) and it still failed to work. On this page: http://struts.apache.org/2.2.3/docs/version-notes-211.html I see this note in the Backward compatibility issues with previous versions section: OGNL method calls like text(key) now invoke text(String) instead of getText(String). This affects method calls only, not properties. Some OGNL expressions may need to be updated. I'm wondering if this is what is affecting me? If so, how do I update the OGNL expression so that it works? I've tried a few things like adding #attr. or simply # to the front of promotion.startDate but that didn't seem to work. Any help is greatly appreciated. Thank you -Ryan Ryan Asleson | Application Architect BI | Technology Solutions Group www.biworldwide.comhttp://www.biworldwide.com Please consider the environment before printing. This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.
Re: OGNL Problems During Struts2 Upgrade
Did you enable static method access? The default may have changed. (Is there a reason the default formatting tags aren't being used? Or the JSTL format tags?) Dave On Thursday, July 21, 2011, Asleson, Ryan ryan.asle...@biworldwide.com wrote: Hello, We are attempting to upgrade our application from Struts2 version 2.0.11.2 to the current version, 2.2.3. As part of the upgrade, OGNL was upgraded from version 2.7.3 to version 3.0.1. Our JSPs make use of OGNL to call static methods on classes to help with formatting. Here's an example: s:property value=@com.example.DateUtils@toDate(promotion.startDate) / The DateUtils class has a static toDate method that takes in the passed in promotion.startDate object (which is likely a java.sql.Date) and converts it to a java.util.Date. It does that so that s:property can properly and uniformly format the date for display. This had worked before the upgrade from 2.0.11.2 to 2.2.3. After the upgrade, it no longer works and the s:property tag doesn't output anything. I put some logging statements in the toDate method and it looks like the toDate method is never being called in the first place. One thing to note is that the DateUtils has two overloaded static toDate methods: one that takes a String, and the other that takes a Date (or one of its subclasses). This doesn't seem to make any difference as I've tried changing the method name (and the corresponding OGNL expression) and it still failed to work. On this page: http://struts.apache.org/2.2.3/docs/version-notes-211.html I see this note in the Backward compatibility issues with previous versions section: OGNL method calls like text(key) now invoke text(String) instead of getText(String). This affects method calls only, not properties. Some OGNL expressions may need to be updated. I'm wondering if this is what is affecting me? If so, how do I update the OGNL expression so that it works? I've tried a few things like adding #attr. or simply # to the front of promotion.startDate but that didn't seem to work. Any help is greatly appreciated. Thank you -Ryan Ryan Asleson | Application Architect BI | Technology Solutions Group www.biworldwide.comhttp://www.biworldwide.com Please consider the environment before printing. This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: OGNL Problems During Struts2 Upgrade
How do I enable static method access? Is that through OGNL or Struts2? I don't know why the default formatting tags aren't being used. Probably because the app uses a custom content management system but I don't know. There are over 100 files that use this method for formatting dates and I really don't want to change them all! On Jul 21, 2011, at 7:39 AM, Dave Newton wrote: Did you enable static method access? The default may have changed. (Is there a reason the default formatting tags aren't being used? Or the JSTL format tags?) Dave On Thursday, July 21, 2011, Asleson, Ryan ryan.asle...@biworldwide.commailto:ryan.asle...@biworldwide.com wrote: Hello, We are attempting to upgrade our application from Struts2 version 2.0.11.2 to the current version, 2.2.3. As part of the upgrade, OGNL was upgraded from version 2.7.3 to version 3.0.1. Our JSPs make use of OGNL to call static methods on classes to help with formatting. Here's an example: s:property value=@com.example.DateUtils@toDate(promotion.startDate) / The DateUtils class has a static toDate method that takes in the passed in promotion.startDate object (which is likely a java.sql.Date) and converts it to a java.util.Date. It does that so that s:property can properly and uniformly format the date for display. This had worked before the upgrade from 2.0.11.2 to 2.2.3. After the upgrade, it no longer works and the s:property tag doesn't output anything. I put some logging statements in the toDate method and it looks like the toDate method is never being called in the first place. One thing to note is that the DateUtils has two overloaded static toDate methods: one that takes a String, and the other that takes a Date (or one of its subclasses). This doesn't seem to make any difference as I've tried changing the method name (and the corresponding OGNL expression) and it still failed to work. On this page: http://struts.apache.org/2.2.3/docs/version-notes-211.html I see this note in the Backward compatibility issues with previous versions section: OGNL method calls like text(key) now invoke text(String) instead of getText(String). This affects method calls only, not properties. Some OGNL expressions may need to be updated. I'm wondering if this is what is affecting me? If so, how do I update the OGNL expression so that it works? I've tried a few things like adding #attr. or simply # to the front of promotion.startDate but that didn't seem to work. Any help is greatly appreciated. Thank you -Ryan Ryan Asleson | Application Architect BI | Technology Solutions Group www.biworldwide.comhttp://www.biworldwide.com Please consider the environment before printing. This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.orgmailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.orgmailto:user-h...@struts.apache.org Ryan Asleson | Application Architect BI | Technology Solutions Group www.biworldwide.comhttp://www.biworldwide.com Please consider the environment before printing. This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.
Re: OGNL Problems During Struts2 Upgrade
I enabled static method access by adding this to struts.xml: constant name=struts.ognl.allowStaticMethodAccess value=true / Thanks to the direction I found here under the Accessing static properties section: http://struts.apache.org/2.2.3/docs/ognl-basics.html And it now works!!! Thank you On Jul 21, 2011, at 7:42 AM, Asleson, Ryan wrote: How do I enable static method access? Is that through OGNL or Struts2? I don't know why the default formatting tags aren't being used. Probably because the app uses a custom content management system but I don't know. There are over 100 files that use this method for formatting dates and I really don't want to change them all! On Jul 21, 2011, at 7:39 AM, Dave Newton wrote: Did you enable static method access? The default may have changed. (Is there a reason the default formatting tags aren't being used? Or the JSTL format tags?) Dave On Thursday, July 21, 2011, Asleson, Ryan ryan.asle...@biworldwide.commailto:ryan.asle...@biworldwide.com wrote: Hello, We are attempting to upgrade our application from Struts2 version 2.0.11.2 to the current version, 2.2.3. As part of the upgrade, OGNL was upgraded from version 2.7.3 to version 3.0.1. Our JSPs make use of OGNL to call static methods on classes to help with formatting. Here's an example: s:property value=@com.example.DateUtils@toDate(promotion.startDate) / The DateUtils class has a static toDate method that takes in the passed in promotion.startDate object (which is likely a java.sql.Date) and converts it to a java.util.Date. It does that so that s:property can properly and uniformly format the date for display. This had worked before the upgrade from 2.0.11.2 to 2.2.3. After the upgrade, it no longer works and the s:property tag doesn't output anything. I put some logging statements in the toDate method and it looks like the toDate method is never being called in the first place. One thing to note is that the DateUtils has two overloaded static toDate methods: one that takes a String, and the other that takes a Date (or one of its subclasses). This doesn't seem to make any difference as I've tried changing the method name (and the corresponding OGNL expression) and it still failed to work. On this page: http://struts.apache.org/2.2.3/docs/version-notes-211.html I see this note in the Backward compatibility issues with previous versions section: OGNL method calls like text(key) now invoke text(String) instead of getText(String). This affects method calls only, not properties. Some OGNL expressions may need to be updated. I'm wondering if this is what is affecting me? If so, how do I update the OGNL expression so that it works? I've tried a few things like adding #attr. or simply # to the front of promotion.startDate but that didn't seem to work. Any help is greatly appreciated. Thank you -Ryan Ryan Asleson | Application Architect BI | Technology Solutions Group www.biworldwide.comhttp://www.biworldwide.com Please consider the environment before printing. This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.orgmailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.orgmailto:user-h...@struts.apache.org Ryan Asleson | Application Architect BI | Technology Solutions Group www.biworldwide.comhttp://www.biworldwide.com Please consider the environment before printing. This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. Ryan Asleson | Application Architect BI | Technology Solutions Group www.biworldwide.comhttp://www.biworldwide.com Please consider the environment before printing. This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.
RE: [struts-user] OGNL Problems During Struts2 Upgrade
-Original Message- From: Asleson, Ryan Sent: Thursday, July 21, 2011 8:37 To: user@struts.apache.org Subject: [struts-user] OGNL Problems During Struts2 Upgrade Hello, We are attempting to upgrade our application from Struts2 version 2.0.11.2 to the current version, 2.2.3. As part of the upgrade, OGNL was upgraded from version 2.7.3 to version 3.0.1. Not sure about the 2.0 upgrade path, will defer to someone else. Our JSPs make use of OGNL to call static methods on classes to help with formatting. Here's an example: s:property value=@com.example.DateUtils@toDate(promotion.startDate) / Can you check you struts.properties for: struts.ognl.allowStaticMethodAccess=true The DateUtils class has a static toDate method that takes in the passed in promotion.startDate object (which is likely a java.sql.Date) and converts it to a java.util.Date. It does that so that s:property can properly and uniformly format the date for display. This had worked before the upgrade from 2.0.11.2 to 2.2.3. After the upgrade, it no longer works and the s:property tag doesn't output anything. I put some logging statements in the toDate method and it looks like the toDate method is never being called in the first place. One thing to note is that the DateUtils has two overloaded static toDate methods: one that takes a String, and the other that takes a Date (or one of its subclasses). This doesn't seem to make any difference as I've tried changing the method name (and the corresponding OGNL expression) and it still failed to work. On this page: http://struts.apache.org/2.2.3/docs/version-notes-211.html I see this note in the Backward compatibility issues with previous versions section: OGNL method calls like text(key) now invoke text(String) instead of getText(String). This affects method calls only, not properties. Some OGNL expressions may need to be updated. I'm wondering if this is what is affecting me? If so, how do I update the OGNL expression so that it works? I've tried a few things like adding #attr. or simply # to the front of promotion.startDate but that didn't seem to work. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100- - +1 (443) 269-1555 x333Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: OGNL Problems During Struts2 Upgrade
(Or struts.xml, the preferred mechanism AFAIK). On Thursday, July 21, 2011, Jason Pyeron jpye...@pdinc.us wrote: -Original Message- From: Asleson, Ryan Sent: Thursday, July 21, 2011 8:37 To: user@struts.apache.org Subject: [struts-user] OGNL Problems During Struts2 Upgrade Hello, We are attempting to upgrade our application from Struts2 version 2.0.11.2 to the current version, 2.2.3. As part of the upgrade, OGNL was upgraded from version 2.7.3 to version 3.0.1. Not sure about the 2.0 upgrade path, will defer to someone else. Our JSPs make use of OGNL to call static methods on classes to help with formatting. Here's an example: s:property value=@com.example.DateUtils@toDate(promotion.startDate) / Can you check you struts.properties for: struts.ognl.allowStaticMethodAccess=true The DateUtils class has a static toDate method that takes in the passed in promotion.startDate object (which is likely a java.sql.Date) and converts it to a java.util.Date. It does that so that s:property can properly and uniformly format the date for display. This had worked before the upgrade from 2.0.11.2 to 2.2.3. After the upgrade, it no longer works and the s:property tag doesn't output anything. I put some logging statements in the toDate method and it looks like the toDate method is never being called in the first place. One thing to note is that the DateUtils has two overloaded static toDate methods: one that takes a String, and the other that takes a Date (or one of its subclasses). This doesn't seem to make any difference as I've tried changing the method name (and the corresponding OGNL expression) and it still failed to work. On this page: http://struts.apache.org/2.2.3/docs/version-notes-211.html I see this note in the Backward compatibility issues with previous versions section: OGNL method calls like text(key) now invoke text(String) instead of getText(String). This affects method calls only, not properties. Some OGNL expressions may need to be updated. I'm wondering if this is what is affecting me? If so, how do I update the OGNL expression so that it works? I've tried a few things like adding #attr. or simply # to the front of promotion.startDate but that didn't seem to work. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Access to Resource Bundle when there is no action
Just to clarify that when I talk about accessing a Resource bundle on an action that has no action class I mean accessing the resource from a JSP called as as result from an Struts2 action that has no class associated. Nobody has found this issue before? If so, how do you solve it? TIA Jose 2011/7/20 JOSE L MARTINEZ-AVIAL jlm...@gmail.com Hi, I'm using Struts 2.1.8.1, and I'm having some problems with accessing a Resource bundle on an action that has no action class associated. It just doesn't find the bundle, which seams reasonable since Struts doesn't know where to look. I see that it's possible to define a global resources( http://struts.apache.org/2.1.8/docs/localization.html), but I was wondering if it is possible to define a 'default' bundle at a Struts package level. It would be something like this: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=stmts-doc namespace=/doc extends=stmts-default default-bundle name=com.stmts.doc.my-package.properties/ action name=SeeSelections interceptor-ref name=stmtsStack param name=AuthoritationInterceptor.resourceSecurityMaster/param /interceptor-ref result type=tilesstmts.doc.selections.screen/result /action /package /struts Is it possible to do that? TIA Jose Luis
Re: Failed validation returns Action.NONE instead of Action.INPUT in Struts 2.2.3
The source for 2.2.3 that appears to apply to this situation can be read here: http://grepcode.com/file/repo1.maven.org/maven2/org.apache.struts.xwork/xwork-core/2.2.3/com/opensymphony/xwork2/interceptor/DefaultWorkflowInterceptor.java#144 I referenced line 144 because that's where the doIntercept method is defined, and this is where the processing logic is that returns the result string. A few lines up you can see inputResultName defined with a default of Action.INPUT as expected. However, inside doIntercept, that result name can be overridden by settings within the action or annotations on the action. I suspect there may be a version difference in the processing of your annotations, but I could be wrong. It looks as if, when annotations are present on an action method, the doIntercept method expects to find a result string defined with that action/method. I suppose if it's null, you'd get Action.NULL back. There's a DEBUG level log statement inside that, any time hasErrors is true, should drop a log entry about finding errors. Are you seeing that error? I don't know if struts is distributed with source included in the jar, but if so you could try setting a breakpoint in this method to see what it's thinking. You could try removing your annotation setup and wiring your actions with a struts.xml file instead? Probably a quicker check than reading through all the annotation processing code. - Aaron -- Aaron Brown : aa...@thebrownproject.com - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
How to do validation for Single Quote (') through validation.xml file?
Can somebody please tell me how to do validation for Single Quote (') through validation.xml file? My problem is that when anybody types in the form field I have set the javascript with onkeyup event that pops up the error on pressing single quote as well as for the maximum word limit set. But if anybody is doing copy pasting then that will not complain and I can also not prevent copy pasting on my form, I have to set it open. So, is there anyway where I can validate the Single quote by validation.xml file? -- View this message in context: http://struts.1045723.n5.nabble.com/How-to-do-validation-for-Single-Quote-through-validation-xml-file-tp4619553p4619553.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to do validation for Single Quote (') through validation.xml file?
I got the Solution: field name=Knowing field-validator type=regex message key=validate_appos/ /field-validator /field But how can I escape the ' to display by .properties file in error message. I used (\') but its not working. Please anybody can help me on how to validate the number of words typed on click of submit button by validation.xml file. -- View this message in context: http://struts.1045723.n5.nabble.com/How-to-do-validation-for-Single-Quote-through-validation-xml-file-tp4619553p4620290.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to do validation for Single Quote (') through validation.xml file?
On 07/21/2011 08:07 PM, log2akshat wrote: I got the Solution: field name=Knowing field-validator type=regex message key=validate_appos/ /field-validator /field But how can I escape the ' to display by .properties file in error message. I used (\') but its not working. Please anybody can help me on how to validate the number of words typed on click of submit button by validation.xml file. AFAIK escaping of single-quotes is not required in property files but stuff like java.text.MessageFormat - try double apos instead ('') hth, Manos - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Doubt on Struts 2 Architechture
was looking for a good interceptors reference, thank you Mitch for the book -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) Promoviendo el Software Libre CUSOL-UAC Linux Registered User # 522026
RE: Doubt on Struts 2 Architechture
is this the book? http://www.manning.com/dbrown/ Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Thu, 21 Jul 2011 16:51:22 -0500 Subject: Re: Doubt on Struts 2 Architechture From: mano0...@gmail.com To: user@struts.apache.org was looking for a good interceptors reference, thank you Mitch for the book -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) Promoviendo el Software Libre CUSOL-UAC Linux Registered User # 522026
RE: Doubt on Struts 2 Architechture
That's it. Mitch From: Martin Gainty mgai...@hotmail.com To: Struts Users Mailing List user@struts.apache.org Date: 07/21/2011 05:16 PM Subject:RE: Doubt on Struts 2 Architechture is this the book? http://www.manning.com/dbrown/ Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Thu, 21 Jul 2011 16:51:22 -0500 Subject: Re: Doubt on Struts 2 Architechture From: mano0...@gmail.com To: user@struts.apache.org was looking for a good interceptors reference, thank you Mitch for the book -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) Promoviendo el Software Libre CUSOL-UAC Linux Registered User # 522026
RE: Doubt on Struts 2 Architechture
Thanks Mitch shalom Martin __ Note de déni et de confidentialité Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. To: user@struts.apache.org Subject: RE: Doubt on Struts 2 Architechture From: mmcken...@wernervas.com Date: Thu, 21 Jul 2011 18:09:02 -0500 That's it. Mitch From: Martin Gainty mgai...@hotmail.com To: Struts Users Mailing List user@struts.apache.org Date: 07/21/2011 05:16 PM Subject:RE: Doubt on Struts 2 Architechture is this the book? http://www.manning.com/dbrown/ Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Thu, 21 Jul 2011 16:51:22 -0500 Subject: Re: Doubt on Struts 2 Architechture From: mano0...@gmail.com To: user@struts.apache.org was looking for a good interceptors reference, thank you Mitch for the book -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) Promoviendo el Software Libre CUSOL-UAC Linux Registered User # 522026
Re: Access to Resource Bundle when there is no action
Hi Jose, I have the following entry in my struts.properties file: struts.custom.i18n.resources=globalmessages My globalmessage.properties file is sitting alongside my struts.properties file on the Classpath. I am using, for example, s:text/ tags to hit the resource bundle via my Class-less JSP's. I am using version 2.2.3. Let us know if this helps. Best, jb / From: JOSE L MARTINEZ-AVIAL jlm...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, July 21, 2011 8:16:35 AM Subject: Re: Access to Resource Bundle when there is no action Just to clarify that when I talk about accessing a Resource bundle on an action that has no action class I mean accessing the resource from a JSP called as as result from an Struts2 action that has no class associated. Nobody has found this issue before? If so, how do you solve it? TIA Jose 2011/7/20 JOSE L MARTINEZ-AVIAL jlm...@gmail.com Hi, I'm using Struts 2.1.8.1, and I'm having some problems with accessing a Resource bundle on an action that has no action class associated. It just doesn't find the bundle, which seams reasonable since Struts doesn't know where to look. I see that it's possible to define a global resources( http://struts.apache.org/2.1.8/docs/localization.html), but I was wondering if it is possible to define a 'default' bundle at a Struts package level. It would be something like this: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=stmts-doc namespace=/doc extends=stmts-default default-bundle name=com.stmts.doc.my-package.properties/ action name=SeeSelections interceptor-ref name=stmtsStack param name=AuthoritationInterceptor.resourceSecurityMaster/param /interceptor-ref result type=tilesstmts.doc.selections.screen/result /action /package /struts Is it possible to do that? TIA Jose Luis
Re: I'm trying to unsuscribe from the struts-user mailing list
I had my original registration email and it mentions sending an email using the following format: user-unsubscribe-c.dias=ivstel@struts.apache.org jb / From: Croydon Dias c.d...@ivstel.com To: Struts Users Mailing List user@struts.apache.org Sent: Wed, July 20, 2011 5:49:31 PM Subject: RE: I'm trying to unsuscribe from the struts-user mailing list Haha Yep, that the address I sent the unsucribe email to (user-unsuscr...@struts.apache.org). Regards, Croydon Dias -Original Message- From: mmcken...@wernervas.com [mailto:mmcken...@wernervas.com] Sent: Thursday, 21 July 2011 8:48 AM To: Struts Users Mailing List Subject: Re: I'm trying to unsuscribe from the struts-user mailing list The struts user group is for life. Once you join you're in for the long haul. Did you try simply replying to the message you receive from user-unsuscr...@struts.apache.org? From: Croydon Dias c.d...@ivstel.com To: user@struts.apache.org Date: 07/20/2011 05:35 PM Subject: I'm trying to unsuscribe from the struts-user mailing list I have tried sending an email to user-unsuscr...@struts.apache.org with the subject 'unsuscribe', but I still end up getting emails from the mailing list. Please help. Regards, Croydon Dias - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Access to Resource Bundle when there is no action
Hi Jeff, Yes, that works(I think I mentioned it on my first mail). But my point is that it's only possible to setup that property at a global level, i.e., is the same property for all packages. Is it not possible to define that property at a package level? then I could have a package called store and other called documents, and both of them could have a different definition of struts.custom.i18n.resource. Regards JL 2011/7/21 Jeff Black jeffrey.bl...@yahoo.com Hi Jose, I have the following entry in my struts.properties file: struts.custom.i18n.resources=globalmessages My globalmessage.properties file is sitting alongside my struts.properties file on the Classpath. I am using, for example, s:text/ tags to hit the resource bundle via my Class-less JSP's. I am using version 2.2.3. Let us know if this helps. Best, jb / From: JOSE L MARTINEZ-AVIAL jlm...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, July 21, 2011 8:16:35 AM Subject: Re: Access to Resource Bundle when there is no action Just to clarify that when I talk about accessing a Resource bundle on an action that has no action class I mean accessing the resource from a JSP called as as result from an Struts2 action that has no class associated. Nobody has found this issue before? If so, how do you solve it? TIA Jose 2011/7/20 JOSE L MARTINEZ-AVIAL jlm...@gmail.com Hi, I'm using Struts 2.1.8.1, and I'm having some problems with accessing a Resource bundle on an action that has no action class associated. It just doesn't find the bundle, which seams reasonable since Struts doesn't know where to look. I see that it's possible to define a global resources( http://struts.apache.org/2.1.8/docs/localization.html), but I was wondering if it is possible to define a 'default' bundle at a Struts package level. It would be something like this: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=stmts-doc namespace=/doc extends=stmts-default default-bundle name=com.stmts.doc.my-package.properties/ action name=SeeSelections interceptor-ref name=stmtsStack param name=AuthoritationInterceptor.resourceSecurityMaster/param /interceptor-ref result type=tilesstmts.doc.selections.screen/result /action /package /struts Is it possible to do that? TIA Jose Luis
Re: Access to Resource Bundle when there is no action
It may not be a perfect solution, but you can specify multiple values for that property. Maybe something like this would work: struts.custom.i18n.resources=store, documents or even: struts.custom.i18n.resources=com.package.store, com.package.documents Which would allow you to have a com/package/store.properties on the classpath, and a com/package/documents.properties as well. They're both technically global, but as long as you treat them as package specific, they will behave fine. (*Chris*) On Thu, Jul 21, 2011 at 6:50 PM, JOSE L MARTINEZ-AVIAL jlm...@gmail.comwrote: Hi Jeff, Yes, that works(I think I mentioned it on my first mail). But my point is that it's only possible to setup that property at a global level, i.e., is the same property for all packages. Is it not possible to define that property at a package level? then I could have a package called store and other called documents, and both of them could have a different definition of struts.custom.i18n.resource. Regards JL 2011/7/21 Jeff Black jeffrey.bl...@yahoo.com Hi Jose, I have the following entry in my struts.properties file: struts.custom.i18n.resources=globalmessages My globalmessage.properties file is sitting alongside my struts.properties file on the Classpath. I am using, for example, s:text/ tags to hit the resource bundle via my Class-less JSP's. I am using version 2.2.3. Let us know if this helps. Best, jb / From: JOSE L MARTINEZ-AVIAL jlm...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, July 21, 2011 8:16:35 AM Subject: Re: Access to Resource Bundle when there is no action Just to clarify that when I talk about accessing a Resource bundle on an action that has no action class I mean accessing the resource from a JSP called as as result from an Struts2 action that has no class associated. Nobody has found this issue before? If so, how do you solve it? TIA Jose 2011/7/20 JOSE L MARTINEZ-AVIAL jlm...@gmail.com Hi, I'm using Struts 2.1.8.1, and I'm having some problems with accessing a Resource bundle on an action that has no action class associated. It just doesn't find the bundle, which seams reasonable since Struts doesn't know where to look. I see that it's possible to define a global resources( http://struts.apache.org/2.1.8/docs/localization.html), but I was wondering if it is possible to define a 'default' bundle at a Struts package level. It would be something like this: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=stmts-doc namespace=/doc extends=stmts-default default-bundle name=com.stmts.doc.my-package.properties/ action name=SeeSelections interceptor-ref name=stmtsStack param name=AuthoritationInterceptor.resourceSecurityMaster/param /interceptor-ref result type=tilesstmts.doc.selections.screen/result /action /package /struts Is it possible to do that? TIA Jose Luis
Re: Access to Resource Bundle when there is no action
Humm, I didn't know I could setup multiple values for that. Will try. Any case, I think that declaring a default resource per package could be useful, so maybe I will fill a Jira to request that. Thanks for your help. JL 2011/7/22 Chris Pratt thechrispr...@gmail.com It may not be a perfect solution, but you can specify multiple values for that property. Maybe something like this would work: struts.custom.i18n.resources=store, documents or even: struts.custom.i18n.resources=com.package.store, com.package.documents Which would allow you to have a com/package/store.properties on the classpath, and a com/package/documents.properties as well. They're both technically global, but as long as you treat them as package specific, they will behave fine. (*Chris*) On Thu, Jul 21, 2011 at 6:50 PM, JOSE L MARTINEZ-AVIAL jlm...@gmail.com wrote: Hi Jeff, Yes, that works(I think I mentioned it on my first mail). But my point is that it's only possible to setup that property at a global level, i.e., is the same property for all packages. Is it not possible to define that property at a package level? then I could have a package called store and other called documents, and both of them could have a different definition of struts.custom.i18n.resource. Regards JL 2011/7/21 Jeff Black jeffrey.bl...@yahoo.com Hi Jose, I have the following entry in my struts.properties file: struts.custom.i18n.resources=globalmessages My globalmessage.properties file is sitting alongside my struts.properties file on the Classpath. I am using, for example, s:text/ tags to hit the resource bundle via my Class-less JSP's. I am using version 2.2.3. Let us know if this helps. Best, jb / From: JOSE L MARTINEZ-AVIAL jlm...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, July 21, 2011 8:16:35 AM Subject: Re: Access to Resource Bundle when there is no action Just to clarify that when I talk about accessing a Resource bundle on an action that has no action class I mean accessing the resource from a JSP called as as result from an Struts2 action that has no class associated. Nobody has found this issue before? If so, how do you solve it? TIA Jose 2011/7/20 JOSE L MARTINEZ-AVIAL jlm...@gmail.com Hi, I'm using Struts 2.1.8.1, and I'm having some problems with accessing a Resource bundle on an action that has no action class associated. It just doesn't find the bundle, which seams reasonable since Struts doesn't know where to look. I see that it's possible to define a global resources( http://struts.apache.org/2.1.8/docs/localization.html), but I was wondering if it is possible to define a 'default' bundle at a Struts package level. It would be something like this: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=stmts-doc namespace=/doc extends=stmts-default default-bundle name=com.stmts.doc.my-package.properties/ action name=SeeSelections interceptor-ref name=stmtsStack param name=AuthoritationInterceptor.resourceSecurityMaster/param /interceptor-ref result type=tilesstmts.doc.selections.screen/result /action /package /struts Is it possible to do that? TIA Jose Luis
Re: Access to Resource Bundle when there is no action
Hey Jose. I did see you mention globalmessages in your first email but I missed your point. My bad. To Chris' point, the specification of multiple bundles via struts.properties would do the trick. jb / On Jul 21, 2011, at 8:50 PM, JOSE L MARTINEZ-AVIAL jlm...@gmail.com wrote: Hi Jeff, Yes, that works(I think I mentioned it on my first mail). But my point is that it's only possible to setup that property at a global level, i.e., is the same property for all packages. Is it not possible to define that property at a package level? then I could have a package called store and other called documents, and both of them could have a different definition of struts.custom.i18n.resource. Regards JL 2011/7/21 Jeff Black jeffrey.bl...@yahoo.com Hi Jose, I have the following entry in my struts.properties file: struts.custom.i18n.resources=globalmessages My globalmessage.properties file is sitting alongside my struts.properties file on the Classpath. I am using, for example, s:text/ tags to hit the resource bundle via my Class-less JSP's. I am using version 2.2.3. Let us know if this helps. Best, jb / From: JOSE L MARTINEZ-AVIAL jlm...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, July 21, 2011 8:16:35 AM Subject: Re: Access to Resource Bundle when there is no action Just to clarify that when I talk about accessing a Resource bundle on an action that has no action class I mean accessing the resource from a JSP called as as result from an Struts2 action that has no class associated. Nobody has found this issue before? If so, how do you solve it? TIA Jose 2011/7/20 JOSE L MARTINEZ-AVIAL jlm...@gmail.com Hi, I'm using Struts 2.1.8.1, and I'm having some problems with accessing a Resource bundle on an action that has no action class associated. It just doesn't find the bundle, which seams reasonable since Struts doesn't know where to look. I see that it's possible to define a global resources( http://struts.apache.org/2.1.8/docs/localization.html), but I was wondering if it is possible to define a 'default' bundle at a Struts package level. It would be something like this: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=stmts-doc namespace=/doc extends=stmts-default default-bundle name=com.stmts.doc.my-package.properties/ action name=SeeSelections interceptor-ref name=stmtsStack param name=AuthoritationInterceptor.resourceSecurityMaster/param /interceptor-ref result type=tilesstmts.doc.selections.screen/result /action /package /struts Is it possible to do that? TIA Jose Luis - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org