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 global variable in javascript?
What is client side in javascript?
How do functions work in javascript?
How to count the number of element in an array using javascript?
What is event target in javascript?
Is JavaScript a true OOP language?
Is javascript frontend or backend?
Is javascript a dynamic language?
How to change style on an element?
Which software is best for javascript?
What is unobtrusive javascript?
What is 'use strict'?
Can you assign an anonymous function to a variable?
What is meant by vanilla javascript?
How to get the type of arguments passed to a function?