tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wentzel <Michael.Went...@aswethink.com>
Subject RE: JSP->servlet->JSP session problems
Date Thu, 11 Jan 2001 12:08:17 GMT
> I've tried using request scope instaed, but the
> request.getAttribute("test") produces a null bean object - why?

bean objects are not in the HttpServletRequest.  They are simply
shorthand for instantiation of a Object... i.e. instead of:

SessionDoohicky doohicky = new SessionDoohicky(param1);

you use:
<jsp:useBean id="doohicky" class="SessionDoohicky" scope="session">
  <jsp:setProperty name="param1" property="*" />
</jsp:useBean>

this can be thought of as a macro that at compile time gets 
converted to the first line.



---
Michael Wentzel
Software Developer
<A HREF="http://www.aswethink.com">Software As We Think</A>
<A HREF="mailto://wentzel@aswethink.com">Michael Wentzel</A>

Mime
View raw message