Hi,
I wouldn't consider myself an expert on this by any stretch of the
imagination, but here's how to do what you want.
Basically the bean's used in your JSP's are held as object's in the HTTP
session, mapped according to the id property specified in the jsp:useBean
tag.
Because of this you can get at them by accessing the session in your
servlet, using HttpSession.getValue(id) where id is set equal to the id
property specified in the JSP.
You can get to the HttpSession object for a request via request.getSession()
from your service implementation in the servlet.
To summarise this as code fragments:
In the JSP's:
<@ page import="<whateverYourBeanClassIs>" %>
<jsp:useBean id="beanName" class="<whateverYourBeanClassIs scope="session"
/>
In the Servlet:
<whateverYourBeanClassIs> myBean =
(<whateverYourBeanClassIs>)request.getSession().getValue("beanName");
Hope this helps,
Mark
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html