Thanks for the response.
I know how to access it using tags, but what I want is to access it
with plain Java inside a scriptle area.
Something similar to this:

<%
 MyTestAction act = ...   ?
%>

Do I have to play with extra interfaces on the action?
Or make it request aware and put the action itself in the request as
an attribute?
Or it is possible out of the box?

Darek


On 12/21/06, Wesslan <[EMAIL PROTECTED]> wrote:
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]

Reply via email to