• Post Reply Bookmark Topic Watch Topic
  • New Topic

URL rewriting  RSS feed

 
Sony Agrawal
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is URLRewriting done in JSP page without using JSTL.
Is it possible ?
 
Devaka Cooray
Marshal
Posts: 5325
575
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sony Agrawal wrote:...without using JSTL.

Why not using JSTL ?
 
Sony Agrawal
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP was there before JSTL ( I guess).
So there must be a way to do it without JSTL . Curious to know about it.
 
Devaka Cooray
Marshal
Posts: 5325
575
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no action tag for encoding the URL for rewriting.
You may use another component to encode the URL, and pass the encoded URL to the JSP as an attribute, or, use JSTL.
 
Kris Schneider
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way is to use an expression: <%= response.encodeURL("url/to/encode") %>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!