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 |
Which protocol will be used by browser and servlet to communicate
What are the supporting protocol by HttpServlet ?
Why jsp is better than servlet?
Explain is servlet mapping?
What are the security issues in Servlets?
Difference Between Web Server and Application server ??
which type of data passing is used in realtime?
My Question is that i am using <image> tag in my servlet and after compilation after that calling by url in my browser then images are not showing. Sometime images are showing and sometime is not showing. I am using Tomcat to run my servlets. Tell me if there any specification for image in servlets or what is solution for this ??
How to read request headers from servlets?
What is the difference between the include() and forward() methods?
how the server will know its the same jsp page?
Name the packages that work with servlet?