• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why no sendRedirect tag  RSS feed

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
To forward and include a page there are jsp:forward and jsp:include tags but surprisingly there is no sendRedirect tag.
Any guesses why itz missing?
:roll:
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
Hi All,
To forward and include a page there are jsp:forward and jsp:include tags but surprisingly there is no sendRedirect tag.
Any guesses why itz missing?

JSP itself offers very few standard actions; JSP effectively expects you to write a tag like this yourself or to use Java code.
To remedy the situation, JSTL 1.0 introduces a standard <c:redirect> tag that is implemented via response.sendRedirect().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!