This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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.
 
GeeCON Prague 2014
 
subject: how to get different jsp page using same action class method.