Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

url rewriting

 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is url rewriting in jsp and servlet?
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4682
332
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
URL rewriting is useful in retrieving the last user session, when cookies are disabled in the client side. Have a look at this article.
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are the other ways of session tracking in jsp?
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generally cookies and url rewriting are used for session tracking. Read a tutorial like this to see an example...
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i found this example from site.http://www.roseindia.net/jsp/jspsession/SessionUsingUrlRewriting.shtml

this is encodeURL.jsp


this is EncodeURLProgram.jsp



this is NextPageAfterFirst.jsp
[code]
<html>
<head>
<title>Welcome in In the program of URL rewriting</title>
</head>
<body>
<font size = 6>Hello</font> <%= session.getAttribute("username") %>
</body>
</html>
[code]

my question is is i enter Williams as a name and abcde as password it gives second page.then i click the link it shows the name which i entered.

my problem is if i remove this part "EncodeURLProgram.jsp" from EncodeURLProgram.jsp also it is working .
then what is the url rewriting?
why we add "?name=+name+&password=+password" this part?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic