I'm looking at Xue Bai's "JavaServer Pages" copyrighted 2003. It's examples use deprecated code. The author put this in some code example and it's deprecated too. Does anyone know what replaces this class/method?
It reconstructs the URL the client used to make the request. It return's the request's URL
Thanks jatan for pointing me in the right direction. I'll try to rewrite the code to use HttpServletRequest. It may be old but it works!!! I can't help it that the book the class is reading is old.
Joined: Feb 27, 2012
Java class is a data type containing data members and methods. The classes automatically imported into jsp are java.lang.*, javax.servlet.*, javax.servlet.jsp.*, javax.servlet.http.*. I was able to simply put <%= request.getRequestURL() %> in the code and do the same thing that HttpUtils was doing. request is an implicit object made available by the JSP container. Thanks again.