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 is servlet configuration?
if u havea .class file ,how can u say whether it is servlet or not ,dont use java decompliler
Explain is servlet mapping?
Describe the phases of servlet lifecycle?
What do you mean by url pattern in servlet?
What is servlet and its advantages?
how the jsp page can be regenerated?
Which java application server is the best?
How can you use a servlet to generate a plain text instead of html?
what are the way a client can be tracked?
What is cgi and what are its drawbacks?
what is the difference b/w DispatchAction and LookUpDispatchAction?
1 Answers Deloitte, iGate, Tech Mahindra,