what is the source code for sendRedirect method()java
Servlet program?



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

Post New Answer

More JavaScript Interview Questions

What is the use of javascript?

0 Answers  


How onclick works in javascript?

0 Answers  


What is nodetype in javascript?

0 Answers  


why jsp

0 Answers  


What is a hash javascript?

0 Answers  






Javascript, Pass by Value or Pass by Reference?

0 Answers  


What is the disadvantage of using innerhtml in javascript?

0 Answers  


How do I get javascript?

0 Answers  


WHAT IS DIFFERENT BETWEEN CORE JAVA AND ADVANCED JAVA?

2 Answers  


How to modify the url of the page without reloading the page?

0 Answers  


what difference between args.length and args.length() in command line argument?

0 Answers  


Should I learn java first or javascript?

0 Answers  


Categories