File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Passing parameters to actionMapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Passing parameters to actionMapping" Watch "Passing parameters to actionMapping" New topic

Passing parameters to actionMapping

YanJun Tong

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 But now I want it to be directed to "" the value of the variable parm1(1234) can not be predicted in advance.
Thanks in advance
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

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

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
I agree. Here's the link:
subject: Passing parameters to actionMapping
It's not a secret anymore!