Vítor Souza wrote:

Therefore, I have the following action:

  <action name="helloWebWorld"
class="section01.lesson03.HelloWebWorldAction">
   <result name="success" type="dispatcher"><param
name="location">ex01-success.jsp</param></result>
  </action>


This action execute() method just sets the value of a parameter (private
String hello;) and returns SUCCESS. The action class also supplies a
accessor for the parameter (public String getHello()).


    My question is: how do I access the action property (hello) using JSP
without using tags?


Someone correct me if I'm wrong, but I don't think it's possible without tags.


<ww:set name="myAction" value="#helloWebWorld" scope="request"/>

Will put it in the request and make it available to the JSP page so that you get it via

<%
HelloWebWorldAction myAction = (HelloWebWorldAction)request.getAttribute("myAction");
%>


Or if you're using JSP 2.0

${myAction}


HTH, -Mark


------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to