You can access all your actions public getters (and setters) from your JSP
with something like <s:property value="nameOfGetterWithoutPrefixGet"/>.
Action:
Public String getPetName() {
return "Dinky";
}
JSP:
<s:property value="petName"/>
Or did I misunderstand you?
Hth,
Peter
-----Original Message-----
From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]
Sent: den 20 december 2006 22:29
To: Struts Users Mailing List
Subject: [S2] - access to the action from a JSP page
Hi,
Can somebody help me and give an example how to access the 'parent'
action from a JSP page?
Lets say I have MyTestAction which redirects to 'page.jsp'.
How do I get access to the action (it's properties?)
<%
MyTestAction act = ... ?
%>
Darek
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]