Its not "jobs" or "jobz" every time. This example assumes you have a getter named "jobs" in your action
In this example "jobs" is your "foo" in you action i.e. you have a method getFoo().
"jobz" is what you want to refer to it by in the request.
<ww:set name="jobz" value="jobs" scope="request" />
Matt
Mark Mansour wrote:
I want to manipulate a WW property in a standard JSP page. I know this is going to be simple, but I just can't work it out - I've googled, wikied and mailist searched and now I'm pooped :)
This is on of my many attempts:
<%@ taglib uri="webwork" prefix="ww" %>
<ww:set name="jobz" value="jobs" scope="request" />
<%= request.getAttribute("jobz") %>
During my hunt I became very desperate generally screwing around with the request and session variables and doing things like but with obviously no luck:
<% System.out.println(((com.opensymphony.xwork.util.OgnlValueStack) request.getAttribute("webwork.valueStack")).findValue("jobz")); %>
I also read
http://wiki.opensymphony.com/space/Example,+exposing+webwork+objects+to+JSTL,+with+a+JSTL+and+DisplayTag+Example
but that didn't really have enough info to clear things up.
The end goal is simply to read in a List of names from a web work action and then manipulate them (in a way that I can't do with standard webwork tags).
Mark
Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com
------------------------------------------------------- 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_id=1356&alloc_id=3438&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork