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 JavaBeans data to JSP using Servlets?

Answers were Sorted based on User's Feedback



How to pass JavaBeans data to JSP using Servlets?..

Answer / pramod kumar

<jsp:useBean> tag can be used to avail the bean data in
case you are working with JSP's, or if you use a servlet
you can set the bean to the request object and forward it
to the JSP component and there in JSP retreive this object
and use getter methods and do something like this and it
works for sure.

Is This Answer Correct ?    3 Yes 0 No

How to pass JavaBeans data to JSP using Servlets?..

Answer / muralisankar

Using RequestDispatcher as follows,

RequestDispatcher rd =
getServletContext().getRequestDispatcher("test.jsp");
rd.forward(req,res);

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Servlets Interview Questions

What's the use of servletcontext?

0 Answers  


What are the types of an http request?

0 Answers  


How we can get ip address of client in servlet?

0 Answers  


give the syntax of doGet() and doPost()?

2 Answers  


What is lazy loading and what is Generic Servlet Class?

0 Answers  


When should you prefer to use doget() over dopost()?

0 Answers  


What compiler do not do if we create our own constructor?

5 Answers   HCL,


Why servlet is used as controller ? Not JSP? I want complete explation?

0 Answers   Tech Mahindra,


How many Cookies can a host support?

2 Answers  


What is servlet and its use?

0 Answers  


Explain in detail about applet to servlet communication?

1 Answers  


Can we write a constructor for a Servlet class ? if yes how ? if no why not ?

10 Answers  


Categories