response.encodeURL() does NOT work... - TechRepublic
General discussion
October 16, 2000 at 11:29 AM
ashwini_develop

response.encodeURL() does NOT work…

by ashwini_develop . Updated 24 years, 11 months ago

Hello

Can any one tell what could be the possible solution. I am using Apache 1.3.11 and JServ 1.1.2 and GNUJSP for JSP Pages.

But when I am using response.encodeURL(test.jsp)

response.sendRedirect(response.encodeURL(“search.jsp”));

I am getting the following error.
Error compiling source file:c:/program files/apache group/apache/htdocs/java/home.jsp

javac -classpath c:\Program Files\Apache JServ 1.1.2
\ApacheJServ.jar;f:\Apache\GNUJSP\servlet-2.0- plus.jar;f:\Apache\nplib.jar;f:\Apache\GNUJSP\gnujsp10.jar -d c:\Apache\jsp -deprecation
c:\Apache\jsp\jsp\_Java\_home_2ejsp.java
c:\Apache\jsp\jsp\_Java\_home_2ejsp.java:74: cannot resolve symbol
symbol : method EncodeURL (java.lang.String) location: interface javax.servlet.http.HttpServletResponse

response.sendRedirect(response.EncodeURL(“search.jsp”));
^
1 error

Thank in Advance,
Ashwini

This discussion is locked

All Comments