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

How to accessing elements using javascript?

0 Answers  


How do you round a value in javascript?

0 Answers  


Explain the difference between call() and apply()?

0 Answers  


What is triple dot in javascript?

0 Answers  


how to hide alphabets in java as password '*'

0 Answers  


What is the use of a form in html page? Is there any way to submit the page without using the form.

3 Answers   Kanbay, TCS,


How and where javascript namespacing is used?

0 Answers  


Which keyword is used to print the text in the screen?

0 Answers  


How to make a function in javascript?

0 Answers  


what does javascript null mean?

0 Answers  


discuss scoping in javascript?

0 Answers  


What is output of “20” + 20? In javascript?

0 Answers  


Categories