I have the following code in a JSP page...

<jsp:useBean id="cookieBean" scope="page" class="ethan.CookieBean">
</jsp:useBean>
<jsp:setProperty name="cookieBean" property="request" value="<%= request %>" />

I'm trying to pass the current HttpServletRequest object to my bean.
Seems straightforward.

The problem is, the JSP engine generates the following Java code...

cookieBean.setRequest((face javax.servlet.http.HttpServletRequest) ( request ));
                       ^^^^

What the heck is this??? Am I not supposed to be able to pass either the
current request or response object to a bean, or is it just a bug where
the JSP engine is generating invalid Java code?

I'd appreciate any kind of answer I can get...

Thanks,
Ethan
--
Ethan Henry                                            [EMAIL PROTECTED]
Java Evangelist, KL Group                       http://www.klg.com
               "Software Development Productivity"

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to