what is the source code for sendRedirect method()java
Servlet program?
Answer / 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 |
can wwe trace a java program (class)
What is "strict mode" and how is it used in JavaScript?
What is event bubbling and capturing in javascript?
What is meant by vanilla javascript?
what is the purpose of using jsp?
How javascript variables work?
How to get the primitive value of a string in Javascript?
What is a boolean in javascript?
Can I declare a variable as CONSTANT in JavaScript?
Explain the typeof operator?
Is javascript frontend or backend?
Are there any predefined constant provided by the browser with the key code values that can be reused?