I am wondering, and i know it is off topic...
I am doing some servlet things... with this code
String requestUrl = HttpUtils.getRequestURL(request).toString();
and it told me that i had depracations (HttpUtils) when i compile...
So i check into servlet 2.4 (i use tomcat 5)
and in the specifications
SRV.3.1.15 HttpUtils
public class HttpUtils
Deprecated. As of Java(tm) Servlet API 2.3. These methods were only useful
with the default encoding and have been moved to the request interfaces.
SRV.3.1.15.1 Constructors
HttpUtils()
JAVAX.SERVLET.HTTP
124
public HttpUtils()
Constructs an empty HttpUtils object.
So what should i do? Should i ignore it?
Actually i don't understand what it means and what should i do?
There is no other possible ways to call
getRequestUrl (..)
Any help, please?
Regards,
Chua Wen Ching![]()

Reply With Quote


