What is URL Rewriting ?

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


Please Help Members By Posting Answers For Below Questions

What is Request Dispatcher?

783


What is the difference between the http servlet and generic servlet?

587


How to read request headers from servlets?

556


How to get the actual path of servlet in server?

724


Explain get and post.

639






Can you create a deadlock condition on a servlet?

580


Explain the jar and war files in servlet?

542


Difference between GET and POST?

700


What is the inter-servlet communication?

687


What are the different types of servlets?

508


Why do we have servlet filters?

590


What is servletconfig?

539


Define the life cycle of a servlets.

562


What is the use of welcome-file-list?

559


What are the phases of a servlet life cycle?

611