• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
vijay akni kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic