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 difference between registerclientscriptblock and registerstartupscript?
What is escape() function?
What is the javascript function?
What is unshift method in JavaScript?
Is javascript frontend or backend?
What is asynchronous javascript?
What is a closure javascript?
What is the function of delete operator?
How to write hello world on the web page?
What does ecma stand for?
What is screen object in JavaScript?
How do I get javascript?
Difference between Client side JavaScript and Server side JavaScript?
What is a module in javascript?
What is the use of window object?