Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between jsp:forward and c:redirect  RSS feed

 
Vinoth Thirunavukarasu
Ranch Hand
Posts: 164
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anybody explain me about the difference between jsp:forward and c:redirect and where should I use jsp:forward and where should I use <c:redirect>
 
Devaka Cooray
Marshal
Posts: 5562
709
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jsp:forward> action tag uses RequestDispatcher for forwarding, and <c:redirect> in JSTL instructs the user agent (browser) for the redirection. Have a look at this article for the difference of forward and redirect.

Devaka
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!