Passing Javabean from Servlet to JSP
I'm missing something fundamentally simple I'm sure, but I want a servlet controller to create and populate a Javabean, then forward to JSP page for display via RequestDispatcher.forward (req, resp)
Then in the JSP, I
<jsp:useBean id="name" class="com.etc...." scope="request">
The result is my Javabean is created and populated in the servlet as I want, but then is re-created when it gets to the JSP. I'm looking for some method call or something to attach the javabean to the request object so it gets passed into the JSP without being recreated.
Seems pretty basic to me, but can't find references or searches to
help me out.
Thanks,
|