On Sun, Dec 18, 2005 at 03:20:09PM -0800, Bill Barker wrote:
>
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > My guess is that tomcat uses a "HEAD" request to retrieve content with
> > c:import if the request for the jsp page containing the c:import was
> > requested with a "HEAD" request. I'm not familiar enough with the tomcat
> > code to easily figure out whether this is actually the case or not.
>
> Actually, it JSTL rather than Tomcat, but you're basically correct, that is
> what is happening. It could be fixed in c:import (to wrap the Request, and
> report GET for HEAD), but that is outside of Tomcat.
I feared that might be the case. I asked on the apache taglibs list,
but that list is rather empty of people, so I got no response. :(
> > If that's really what's happening, then I think it's wrong. When a HEAD
> > request is received, the jsp page should either:
> > 1) run exactly the same as if a GET request was received
>
> This is outside of Tomcat's control, since any Servlet is free to override
> doHead to do anything it wants ;-). In fact, this is one work-around for
> your problem: Use extends="com.myfirm.mypackage.MyJSPPage", and implement
> doHead there.
yuck. That seems like gross solution.
> > 1a) unless the jsp page _explicitly_ checks the request method
> > with ${request.method} or equivalent.
>
> Checking this is probably the easiest work-around. It's very unlikely that
> Tomcat could do it relyably.
ah, oh well. I guess I'll do something like this. Thanks.
eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]