what is the source code for sendRedirect method()java
Servlet program?
Answer Posted / sunny
first,u have to use sendRedirect in form of JSP browserside.
<form method="POST"
action="/SendRedirect/SendRedirectServlet">
second in SendRedirectServlet, u have giving a response to
browser side
response.sendRedirect("/SendRedirect/ValidUserServlet");
it makes a request to one resource in server.
in server, gives response to browser. session is lost at a
time.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is the naming conventions for the variables in javascript?
How will you create new object in javascript?
Is there an ide for javascript?
How to you change the title of the page by javascript?
What is difference == and === in javascript?
What do you use javascript for?
What is design pattern in javascript? Explain
What is meant by object oriented programming?
How to write hello world on the web page?
How do you define a class and its constructor?
Is there any ide for javascript?
What is difference between local variable and global?
Can you explain how inheritance works in javascript?
Is it possible to break javascript code into several lines?
How to create a popup warning box?