How to pass JavaBeans data to JSP using Servlets?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by deployment descriptor?

737


What is the difference between servlet and jsp?

795


What is Request Dispatcher?

1052


How do we share data using 'getservletcontext ()?

737


Explain mvc pattern.

754


What do you mean by web applications? Explain web application directory arrangement?

717


What are the benefits of using servlet over cgi?

764


Why don't we write a constructor in a servlet?

778


Can we refresh servlet in client and server side automatically?

771


What are different ways for servlet authentication?

761


What is servlet in tomcat?

764


What methods do you use in servlet - applet communication?

782


What is difference between server and servlet?

778


Explain how to improve Servlet Performance?

811


Explain servlet events?

731