File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes how to get different jsp page using same action class method. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to get different jsp page using same action class method." Watch "how to get different jsp page using same action class method." New topic
Author

how to get different jsp page using same action class method.

vijay akni kumar
Greenhorn

Joined: Aug 11, 2008
Posts: 12
I got ajsp with two button which calls struts action class methods(ShowEntries).

In struts action class i got a method called
ShowEntries(ActionMapping................){

return mapping.findForward("xxxxx");
}


In Jsp, when First button is clicked it needs to displays information in display tags and second button needs to display data in Html page. but Both are pointed to ShowEntries method of Action classes. we have only one forward for one action. without repetition of code how can i access. or is there any way to keep to two return find.forwards.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to get different jsp page using same action class method.