Re: OGNL Problems During Struts2 Upgrade

2011-07-21 Thread Dave Newton
(Or struts.xml, the preferred mechanism AFAIK). On Thursday, July 21, 2011, Jason Pyeron 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, >

Re: OGNL Problems During Struts2 Upgrade

2011-07-21 Thread Asleson, Ryan
I enabled static method access by adding this to struts.xml: 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

Re: OGNL Problems During Struts2 Upgrade

2011-07-21 Thread Asleson, Ryan
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 r

Re: OGNL Problems During Struts2 Upgrade

2011-07-21 Thread Dave Newton
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 wrote: > > Hello, > > We are attempting to upgrade our application from Struts2 version 2.