----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Forgive my newbiness (still getting up to speed on Java) -- Using JServ
1.1.2/Apache 1.3.12/MacOS X Server 1.2...

I have a line of code in a servlet like so:
        myResponse.sendRedirect(myResponse.encodeRedirectURL(myRedirectURLasString));

...and when trying to compile, I get:
        Method encodeURL(java.lang.String) not found in interface
javax.servlet.http.HttpServletResponse.

And of course I installed JSDK 2.0. I think I may not be understanding the
proper usage of this method. I just want to get the servlet to give a
certain page to the user. I'm probably missing the obvious way to do this.

And while I'm fussing with these functions, what exactly is the difference
between encodeRedirectURL() and encodeURL() ? The documentation didn't
enlighten me.

Thanks,
John



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to