Actually, it doesn't say anything about not being able to access static variables on that page. What it *does* say is that the *method* can't be static, but I don't think that's correct either: if you're configured to allow static access and use the OGNL static access syntax, it'll work. It's okay if you don't believe me, though.
Also, when linking to the online docs, make sure you link to (a) the most recent version (or version-specific when the version is known), and (b) not the cwiki.apache.org site, but rather the struts.apache.org site. Thanks.
Joined: Jul 08, 2010
Thanks for posting. The solutions were very good. All of them worked.
subject: How to access static fields using OGNL in Struts 2