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’s the difference between genericservlet and httpservlet?
how can we execute servelt? what the use ".war" or ".jar" file creation
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
List out the difference between ServletConfig and ServletContext?
How do I support both get and post from the same servlet?
Is there any differance b/w getting servlet context from servlet config and session? if yes then what is that?
Is it possible to send a mail from a servlet? Explain?
when the several requests comes to server..how it manage the requests
What is the major difference between context parameter and context attribute?
What are the uses of servlet
how a user session can be tracked in servlets?
What are the types of Session Tracking ?