• 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

Calling another Action

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have a Submission Form mapped to Submission action. This form is again mapped to Submission Jsp. My problem is in the submission jsp i have a button call report generate. When i click on report generate i should call report action. This report action is mapped to report form which has it own jsp. I need to pass some values to report action when i click on report generate button. Since its an different form i cant directly call the report action. So i create a hidden form and set all the values in the hidden form. Then i get all the values from request using request.getparameter. Is there any other method so that i could directly call report with populating values.

Thanks in advance.

Regards,
Arul.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm having a little trouble visualizing how this all fits together. Could you post the following?

1-Relevant portions of your struts-config.xml file showing the action mappings and ActionForms you mentioned.

2-Relevant portions of the JSPs you talked about. At leas show us the <html:form> tags, as well as the button that submits the report.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic