I've found when I want to utilize beans in a jsp page, I'd like the beans to be
aware of the environment that they're being used in.  Namely, I'd like them to
have access to the HttpServletRequest (and possibly the HttpServletResponse)
methods.  I remember in the 0.91 or 0.92 spec that if a bean in a JSP page
extended/implemented Servlet (or was it HttpServlet?), the bean's
service(HttpServletRequest, HttpServletResponse) method would be called.

Other than breaking into a scriptlet & doing something like:

<%
bean.setRequest(request);
bean.setResponse(response);
%>

is there some automated mechanism in which the bean can discover it's
environment?  If not, can somebody explain to me why this mechanism was canned?

Thanks,
Rich

-------------------------
Richard M. Yumul
mailto:[EMAIL PROTECTED]
DTAI Incorporated
http://www.dtai.com
(619)542-1700 � fax:(619)542-8675

===========================================================================
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

Reply via email to