I think what you are looking for is the following:
 

<input type="hidden" name="storyid"  value="<ww:property value="parameters['storyid']" />"/>

 

There are four Map variables that are exported by webwork for access in ognl:

 

application

session

parameters

request

 

I believe those are the correct variable names.  You can double check on the webwork wiki.

 

Thanks,

Chris

 

----- Original Message -----
Newsgroups: gmane.comp.java.open-symphony.webwork
Sent: Monday, December 08, 2003 7:13 AM
Subject: Setting hidden value tag from a request scoped variable

I have a request to a .JSP that has in it a variable of storyid (/wafer/addcomment.jsp?storyid=5)  Next, on that page I use the ActionTag to simple calls ActionSupport.  This is done because I want the interceptors to be called but there isn�t any real Action class that needs to be fired to the load of the page to work. (and it works nicely, thanks ActionTag).  The problem is I need to set a hidden variable in the page to the value of the request variable called storyid.  I have done some thrashing with the code but with no luck.  If I were to going to a real Action it would be simple because I would have a accessor method to store the storyid and use the property tag to pull it back out on the jsp page�. However I don�t have that luxury.  Is there a way to set the variable of a input field from a request variable?  Here is what I have so far and it does not work.  The hidden variable is called storyid and the request variable is also called storyid, would this be a problem?

 

<input type="hidden" name="storyid"  value="<ww:property value="#storyid" />"/>

 

Thanks

 

Kris Thompson

Reply via email to