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 the difference between the keywords var and let?
How to remove duplicates from javascript array?
Is javascript or python easier?
How to write html code dynamically using JavaScript?
What is difference between local and global scope in javascript ?
How can you identify a function?
How to convert “20” to number in javascript?
What is hoisted in javascript?
List out the Mouse Events?
What is 'use strict'?
What is use strict in javascript?
Why jquery is used instead of javascript?
What are the seven data types of javascript?
What does the attribute defer/async do when added to the script tag?
What is a framework programming?