tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: How to programmatically add parameters to ServletRequest objects?
Date Fri, 08 Aug 2008 13:50:52 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

André,

André Warnier wrote:
| I am a real beginner at Java and Tomcat, and not so good at it.
| But maybe that causes my explanation below to be useful.

Don't forget to override getDateHeader and getIntHeader in your wrapper
class. Also, don't forget that some headers can have multiple values,
which your code does not allow:

http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/http/HttpServletRequest.html#getHeaders(java.lang.String)

Note that your strategy is the same as my original suggestion to the OP.

- -chris

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

iEYEARECAAYFAkicTzsACgkQ9CaO5/Lv0PAvPgCgpJDdhG6PLrkRS5sQ4oV4IR3z
jhcAniaNj1PXfQ1WzH89Qk3l06hSHaPd
=t1lx
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message