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

Can we override destroy method in servlet?

0 Answers  


what are the different services provided by the web server?

2 Answers  


What are the difference between HttpServlet and GenericServlets?

2 Answers  


What is the purpose of inter-servlet communication?

0 Answers  


What is the difference between ExecuteUpdate and ExecuteQuery?

4 Answers  


In servlets, Why do we need both GET and POST method implementations?

3 Answers   IBM,


What is the major difference between context parameter and context attribute?

0 Answers  


What is difference between cookies and httpsession?

0 Answers  


Explain the architechure of a servlet?

0 Answers  


how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file

0 Answers  


What is servlet looping or chaining?

0 Answers  


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,


Categories