Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help! Can we pass value to ActionMapping Dynamically

Status
Not open for further replies.

jollyplay

Programmer
Dec 16, 2003
90
Hello,

I have to pass value to the ActionMapping(struts-config.xml) Dynamically from the ActionServlet. Is it possible.
Example How i pass value to the "querystring" in the
following line

((((<forward name=&quot;BookList&quot; path=&quot;BookList.do?query=&quot;queryString&quot;/> ))))


<action input=&quot;/view/AssignBook.jsp&quot; name=&quot;AssignBookBean&quot;
path=&quot;/view/AssignBookAtion&quot; scope=&quot;request&quot; type=&quot;com.ui.AssignBookAction&quot;>
<forward name=&quot;success&quot; path=&quot;/view/BookList.jsp&quot;/>
<forward name=&quot;BookList&quot; path=&quot;BookList.do?query=&quot;queryString&quot;/>
</action>

Please help me,
Thanks in advance.

With regards,
balachandar.
 
I'm not sure whether you can do that. There is a <parameter> attribute that you can use to pass the value
to the intended object. Check out <parameter> attribute for <action>.

Another way is to use session object. You can use set/get parameter to pass the values.

~za~
You can't bring back a dead thread!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top