| Author |
Passing parameters to actionMapping
|
YanJun Tong
Greenhorn
Joined: Jun 11, 2003
Posts: 27
|
|
Hi all,I got a problem during using struts framework. Generally we use return actionMapping.findForward("success") to direct the web application to other pages. However what if I want to pass some parameters to that mapping?For instance suppose the above code will direct me to abcdAction.do. But now I want it to be directed to "abcdAction.do?parm1=1234" the value of the variable parm1(1234) can not be predicted in advance. Thanks in advance
|
 |
Marc Peabody
pie sneak
Sheriff
Joined: Feb 05, 2003
Posts: 4725
|
|
|
Wouldn't it work to set the parameter to request?
|
A good workman is known by his tools.
|
 |
sreenath reddy
Ranch Hand
Joined: Sep 21, 2003
Posts: 415
|
|
Hi yah u can do that by sending as a query string then it will come as a req paramtere for ur next action ....r else u can set that parameter in request and if u move across two actiosn with a single request ur request will be available to the next action also hope u got what i am saying
|
 |
 |
|
|
subject: Passing parameters to actionMapping
|
|
|