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
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
What is servlet lazy loading?
Define servlet mapping?
What is the procedure for initializing a servlet?
How do you run a servlet?
What are the advantages of servlets over traditional cgi?
Who is responsible to create the object of servlet?
How can we create deadlock situation in servlet?
What is difference between jsp and servlet?
What is the directory structure of a war file?
How do servlets work?
Explain is servlet mapping?
What is Servlets and explain the advantages of Servlet life cycle?
How the JSP file will be executed on the Server side?
What’s the difference between forward() and sendredirect() methods?