tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wentzel <>
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="*" />

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

Michael Wentzel
Software Developer
<A HREF="">Software As We Think</A>
<A HREF="mailto://">Michael Wentzel</A>

View raw message