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...

How to pass a requrest object of one servlet as a request
object to another servlet?

Answer Posted / hari

Use RequestDispatcher to pass a requrest object of one
servlet as a request object to another servlet.

One way of implementing this operation ,

RequestDispatcher rD = null;
rd = request.getRequestDispatcher("xxx.jsp (or) servlet");
rD.forward(request,response);

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default http method in the servlet?

1353


What is servlet collaboration?

1196


what do you understand by url rewriting?

1013


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

1124


How can I send user authentication information while making URL Connection?

1057


What do you mean by the servlet chaining?

1150


Which method of the httpservletrequest object is used?

1140


Explain session tracking and its importance?

1057


What are the two important api's in for servlets?

1139


What are the key methods that are involved in processing of http servlets?

1162


How to commuincate between an applet and a servlet?

1104


When to use doget() and when dopost()?

1160


What is servlet instance?

1102


Why doesn’t a servlet include main()?

1107


What is string tokenizer?

1144