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 is servlet lazy loading?

0 Answers  


What is the directory structure of web application?

0 Answers  


1.HttpSession 2.Hidden fields 3.URL Rewriting these primitive type of Session maintainance. What is the other type of process that could help to maintain the Session? pls Explain the process if u know?

5 Answers   OnMobile,


What is session?

0 Answers  


Which java application server is the best?

0 Answers  






Why is init() method is used in servlets?

0 Answers  


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

3 Answers   L&T,


how the HTML data stored in web server?

0 Answers   TCS,


What are the types of an http request?

0 Answers  


What are setComment and getComment methods in Cookies?

2 Answers  


What is the process for chaining servlet?

0 Answers  


What is life cycle of Servlet?

0 Answers  


Categories