Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling another Action

 
Arulanand Dayalan
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • 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.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic