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


Please Help Members By Posting Answers For Below Questions

What is the difference between the keywords var and let?

555


How to remove duplicates from javascript array?

516


Is javascript or python easier?

504


How to write html code dynamically using JavaScript?

524


What is difference between local and global scope in javascript ?

526






How can you identify a function?

452


How to convert “20” to number in javascript?

507


What is hoisted in javascript?

513


List out the Mouse Events?

541


What is 'use strict'?

509


What is use strict in javascript?

487


Why jquery is used instead of javascript?

437


What are the seven data types of javascript?

508


What does the attribute defer/async do when added to the script tag?

529


What is a framework programming?

459