• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Passing parameters to actionMapping

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wouldn't it work to set the parameter to request?
 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic