I have a ResponseServlet where i verify the login name and if it is invalid it returns 
to the login page using:

response.sendRedirect(response.encodeRedirectURL(str));
where String str = "/login.html"
i am getting the following error:

C:\Tomcat\webapps\MFC\Web-inf\classes\ResponseServlet.java:45: cannot resolve symbol
symbol  : method encodeRedirectURL  (java.lang.String)
location: interface javax.servlet.http.HttpServletRequest
      response.sendRedirect(request.encodeRedirectURL(str));
                                   ^
1 error

encodeRedirectURL takes a String URL and returns a String whereas sendRedirect takes a 
String...

please help!!!
regards
vikas
______________________________________________
Creativity is great, but plagiarism is faster!



_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to