Q:

Getting value without creating object in struts2

I am working on a struts2 application. I have an auto generated field in my action class and I am getting its value in a String variable. Now, after returing "SUCCESS" by this action class, struts.xml is routed to open a jsp page (say abc.jsp). I want to get that String variable (having auto generated field value) at my jsp page without creating object of action class in my jsp.
Please suggest.

A:

To add to krosenvold's answer properties from your action class are fetched using the s:property tag, so if you have a getter named getSpecialString you'd fetch it like this :
<s:property value="specialString" />

