aspose file tools*
The moose likes Struts and the fly likes Calling another Action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Calling another Action" Watch "Calling another Action" New topic
Author

Calling another Action

Arulanand Dayalan
Ranch Hand

Joined: Aug 10, 2005
Posts: 124
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
 
wood burning stoves
 
subject: Calling another Action