• Post Reply Bookmark Topic Watch Topic
  • New Topic

Throw some light on url rewriting and target attribute

 
karthick Soundararaj
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.. I have been tryinhg to learn JSP and i got struck up the two tags that i dont understand





So what exactly is the advantage of url rewriting? I know its for sessions? but what exactly is the advantage of session...



Consider the following scenario:
Say i have 2 input fields inputA and inputB....
I use a session...
I enter the 2 values and close the browser..


When i again enter the same url will i get the page with the previously entered values? Is this the purpose of sessions?


My second question is What exactly is the purpose of target attribute of set custom tag?





 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
karthick Soundararaj wrote:So what exactly is the advantage of url rewriting?

URL rewriting is the mechanism that must be used to maintain sessions across multiple requests when cookies are disabled.

As for your other question, please use a separate topic for separate questions, and in the correct forum. It's not a JSP question.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, there's more to <c:url> than just rewriting, if that's your question. See its entry in the JSTL Specification for more information.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!