Without using tags? Why not use the tags? This would seem to be much more
straightforward...
Here's how the TagUtils does it...
OgnlValueStack stack = (OgnlValueStack) req.getAttribute("webwork.valueStack");
But it also handles the case where there's no ValueStack (i.e. you hit the page
without executing the Action)...
Jason
> -----Original Message-----
> From: V�tor Souza [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 02, 2004 4:41 PM
> To: (Lista) WebWork
> Subject: [OS-webwork] WebWork2 Tutorial
>
>
> Hi,
>
> I'm working on a WebWork2 tutorial and I'm trying to
> explain a WebWork concept at a time, with examples, so it can
> be as easy as possible for a newbie to understand. Right now
> I'm trying to write an example to explain what an action is.
>
> 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?
>
> Once I have a nice working version of the tutorial I will
> make it available to everyone.
>
> Thanks for any help,
>
> V�tor
>
>
>
>
> -------------------------------------------------------
> 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_id=1356&alloc_id=3438> &op=click
>
> _______________________________________________
>
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>
-------------------------------------------------------
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