Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 Advantage of using type="redirect" when working with Redirects

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am working with struts redirect . I have got some confusion in understanding the concept .please help .

I have seen a lot of examples where the Author specifies type="redirect" when specified on to the Struts.xml file .

I am having a query here . Please tell me what is the advnatage we are getting when used type="redirect as shown below as the same behaviour can be also achivied without the type attribute



Thanks in advance .
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it can't. The default result type is "dispatcher", unless the default is changed.

I'm begging you to read the Struts 2 documentation. Please.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much David .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic