What is URL Rewriting ?

Answers were Sorted based on User's Feedback



What is URL Rewriting ?..

Answer / 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

What is URL Rewriting ?..

Answer / rambabu gonela

all URLs on webpage is explicitly written with
reponse.encodeURL(String url) method, URL rewriting will
happen automatically if cookies don?t work with the client

Is This Answer Correct ?    33 Yes 10 No

Post New Answer

More Servlets Interview Questions

when you comppile the servlet is it neccesary to restaet the tomcat server?

6 Answers   HCL,


How to pass session values from one servlet container to another servlet container? or how can we get session values of one container in another container?

6 Answers   IBM, Infosys, TCS,


How servlets can be automatically reloaded?

3 Answers  


Write a servlet to upload file on server.

0 Answers  


What are the type of protocols used in httpservlet?

0 Answers  






can i override service method

3 Answers   Intelligroup,


Why the container loads server at the application startup and how?

0 Answers  


Explain the steps involved in placing a servlet within a package?

0 Answers  


How can an existing session be invalidated?

0 Answers  


Hi guys.. Well can u tell me that why there is need of "init()" , i mean why can not we initialize the servlet object with the help of constructors? Thank you.

7 Answers  


How two servlets communicate with each other?

2 Answers  


Which protocol will be used by browser and servlet to communicate

0 Answers  


Categories