Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Example of using regular expressions for syntax checking in javascript?

1027


What is a closure javascript? Explain

984


How do I turn on javascript on my phone?

950


What is prototype in javascript and how do you use it?

1001


What is the use of a map object in javascript?

1005


How to write comment in JavaScript?

1541


When would you use var in your declaration and when you wouldn’t?

976


What is innertext javascript?

1037


What is the difference between ‘function declaration’ and ‘function expression’?

1145


How to show progress bar while loading using ajax call?

1080


What is null variable?

1209


What are the main uses of javascript?

1074


Is a parabola a function?

960


Text from your clipboard?

914


Have you used any browser for debugging? If yes, how is it done?

937