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 npm repository?
How do I enable cookies and javascript?
List few difference between primitive and non primitive javascript data types?
What are javascript properties?
What is an object in javascript, give an example?
Difference json arrary vs json object ?
What are the features of javascript?
What can be the challenges during testing a program or a system?
What is the best free ide?
List the comparison operators supported by javascript?
Explain the working of timers in JavaScript? Also elucidate the drawbacks of using the timer, if any?
How to port a GUI application onto Web
List out the Mouse Events?
What are the advantages of using external javascript?
How to load another html page from javascript?