You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Joe Hertz <jh...@speakeasy.net> on 2006/05/18 00:52:26 UTC

HttpRequestWrapper Deprecations?

My Struts (1.2.7) App uses a custom HttpRequest and HttpResponse.

That is to say, I extend the HttpServletRequestWrapper and
HttpServletResponseWrapper classes

I just switched from JDK 1.4.2_06 to 1.5.0_03 and started to get deprecation
warnings my extensions of these classes. The warnings stem from what the
classes I am extending do. This problems are *not in my code*.

As best I can figure it, the deprecated methods being called were deprecated
as of servlet spec *2.1*. You wouldn't see these warnings unless you extend
these classes. For grins, I tried Tomcat 5.5 (and it's servlet-api.jar) and
the same thing happens.

My questions are:

1) What, if anything, am I doing wrong???

2) Why didn't I see these deprecations in the 1.4.2 JDK? Seems like I should
have gotten them all along. But that would imply Tomcat 5.x isn't compliant
with the 2.1 spec, and I can't believe that. I assume it's error on my part.

Deprecation snippets of the compile follow. TIA

-Joe


warning: [deprecation] getRealPath(java.lang.String) in
javax.servlet.ServletRequest has been deprecated
warning: [deprecation] isRequestedSessionIdFromUrl() in
javax.servlet.http.HttpServletRequest has been deprecated
warning: [deprecation] getRealPath(java.lang.String) in
javax.servlet.ServletRequest has been deprecated

warning: [deprecation] setStatus(int,java.lang.String) in
javax.servlet.http.HttpServletResponse has been deprecated
warning: [deprecation] encodeRedirectUrl(java.lang.String) in
javax.servlet.http.HttpServletResponse has been deprecated
warning: [deprecation] encodeUrl(java.lang.String) in
javax.servlet.http.HttpServletResponse has been deprecated



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