Answer Posted / pramod p deore
URL Rewriting is used foe session management. If We use
cookies for session managemnt but it is possible that some
time user may block the cookies and because if this server
can not maintain the session therefore we use URL Rewriting
as a back up for the session management.
Using URL Rewriting we add extra session information at the
end of URL.
If we use both cookies and URL Rewriting then URL Rewriting
is used only if cookies are disabled.
syntax: response.encodeURL(String url)
| Is This Answer Correct ? | 28 Yes | 4 No |
Post New Answer View All Answers
How can we invoke another servlet in a different application?
What is the difference between sendredirect() and forward() in a servlet?
What is the process to implement doget and dopost methods?
Why do you use session tracking in httpservlet?
How to create war file?
List out difference between a JavaBean from a Servlet?
Why the concept of single thread model interface is used?
What are advantages of servlets over cgi?
What is war file?
What do you understand by mime type?
Define the lifecycle for executing a jsp page.
Can we use threads in Servlets?
What is string tokenizer?
What are some advantages of storing session state in cookies?
How can you use a servlet to generate a plain text instead of html?