On Tue, 8 Jan 2002, James Dasher wrote:
> Date: Tue, 8 Jan 2002 13:18:44 -0500
> From: James Dasher <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Possible bug: Present Struts 1.0 PropertyUtils introspection
> code bonks on the variety of Tomcat 4 ServletRequest facades that get
> handed to us as HttpServletRequest
>
> Whoever thought of <bean:page>, I love it, but it exposes some weird
> introspection inconsistencies in the Tomcat container, and I am out of
> my depth. Help.
>
Are you using the 1.0 release of Struts? If so, you will indeed have
introspection issues.
> I have seen two classes that get thrown up as HttpServletRequests to the
> container.
>
> org.apache.catalina.connector.HttpRequestFacade
> org.apache.catalina.core.ApplicationHttpRequest
>
The difference comes from whether your page is accessed directly (you'll
see the first of these) or via a request dispatcher (the second case).
In either case, you should be able to introspect to all public properties.
However, the BeanUtils code that was included in the 1.0 release did have
problems introspecting the public methods that are declared in an
interface (HttpServletRequest) rather than the class itself. This has
been corrected in the nightly builds (which use the Commons version of
BeanUtils). Could you give that a try to see if it sovles your problem?
Craig
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>