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 are the types of servlets? Explain

1253


What is dispatcher servlet?

1061


Does servlet have main method?

1180


Which exception is thrown if the servlet is not initialized properly?

1020


How does Cookies work in Servlets?

1166


What is pure servlet?

1202


How do we translate jsp?

1045


What is servletconfig?

1026


Are Servlets Thread Safe? How to achieve thread safety in servlets?

965


Difference between httpservlet and generic servlets?

1098


Why doesn’t a servlet include main()?

1037


How do we go with database connection and log4j integration in servlet?

1162


What are the different methods involved in generic servlet?

1087


Tell us something about servletconfig interface.

989


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

1092