• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2: forward from jsp to another

 
paddy Mahadeva Iyer
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I am back with a new problem.

I have a jsp in which if i click a button i want to forward to another jsp. I know i can use 'ServletDispatcher'. But in the project all calls to jsp are in the struts.xml.

So in my case. I don't have any logic for my action method (i dn't need that method at all). So how can i avoid going to the action class and forward to my next jsp from struts.xml?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have no "class" attribute in the action mapping the default ActionSupport class is used.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic