Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

what are the different services provided by the web server?

2 Answers  

What is the dispatcher servlet?

0 Answers  

What is the difference between genericservlet and httpservlet

0 Answers  

What happens, when client requests for server object, which is not yet loaded into the memory?

2 Answers  

What are the methods in HttpSession and their use?

3 Answers  

Describe servlet?

0 Answers  

Hi Frieds, I am new to servlet why to use servlet in webapplication. what i know is " use servlet as a controller in mvc and to implemnent business logic . is it correct ? One more thing reason for implementing business logic with servlets , why not jsp.

4 Answers  

What are the life cycle methods of a servlet?

0 Answers  

What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

0 Answers  

Which is better approach among four(HttpSession,cookie,URL Rewriting, Hidden Fields) Session Tracking technic's ? Why ?

3 Answers   L&T,

How are Sessions are more advantage than using of Cookies or URLReWriting?

2 Answers   CTS,

please give url to get orinal software for I-net crystal clear java report tools?

0 Answers