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

What is the difference between registerclientscriptblock and registerstartupscript?

912


What is escape() function?

951


What is the javascript function?

1021


What is unshift method in JavaScript?

1015


Is javascript frontend or backend?

892


What is asynchronous javascript?

939


What is a closure javascript?

1040


What is the function of delete operator?

977


How to write hello world on the web page?

950


What does ecma stand for?

861


What is screen object in JavaScript?

1089


How do I get javascript?

940


Difference between Client side JavaScript and Server side JavaScript?

1724


What is a module in javascript?

1064


What is the use of window object?

984