-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael,

On 9/15/2010 6:33 PM, Michael Coates wrote:
> On 9/15/10 2:46 PM, Christopher Schultz wrote:
>>
>> I think what you're really trying to say is "it's easy to overlook the
>> fact that <jsp:include> uses URL parameters to pass data, and that an
>> include inherits the original request, so URL parameter data goes right
>> through".
>
> Yes, exactly. Well said.

Glad we agree :)

This is one of those definite "gotchas" in the servlet specification. In
re-reading the specs, it was unclear until a certain section whether the
<jsp:include> could be used to include arbitrary content from anywhere
(like http://www.google.com/). If the "include" instruction actually
makes a new http request (like I believe Apache httpd SSI's do), then
you are safe from the behavior you describe. It appears that this
features has been designed to only use resources that are local to the
webapp, and to actually be processed using the current request object.

Unless you read the spec (or get a strong hint from being familiar with
the servlet API), this is behavior is definitely surprising. I usually
believe in the "principle of least surprise", but in this case, I'm not
sure there's anything to be done about it other than attempt to educate
users.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkySYw4ACgkQ9CaO5/Lv0PDzswCeOE02jc5/KXsWxnrNtpgUVqZI
L/sAoJFZeUJxq4vW8avoF1edTB/JemBc
=1c4o
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to