How to pass JavaBeans data to JSP using Servlets?
Answers were Sorted based on User's Feedback
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 |
Answer / muralisankar
Using RequestDispatcher as follows,
RequestDispatcher rd =
getServletContext().getRequestDispatcher("test.jsp");
rd.forward(req,res);
| Is This Answer Correct ? | 3 Yes | 0 No |
What methods do we use in Servlet to Applet communication?
Difference between httpservlet and generic servlets?
What is the difference between Get and Post Method?
When a servlet accepts a call from a client, it receives two objects. What are they?
What is the use of request dispatcher interface?
What is life cycle of Servlet?
how to make the IP address to .com
what is OOAS
Differentiate between get and post?
What are session variable in servlets?
What is cookie in servlet?
What are the advantages of Servlet over CGI?