Cannot find symbol
Hi,
I have the following code. I have come accross the importing libraries problem. I have download and installed the com.oreilly.servlet (cos.jar) in WEB-INF/lib catalog. But when I try to compile I get the following message:
cannot find symbol symbol: variable ServletUtils
location: class com.oreilly.servlet.Main
ServeltUtils.returnURL(URLhtml, out);
package com.oreilly.servlet;
import com.oreilly.servlet.*;
import java.io.*;
import java.net.*;
import java.lang.*;
import javax.servlet.*;
import javax.servlet.http.*;
publicclass Mainextends HttpServlet{
protectedvoid processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException{
response.setContentType("text/plain; charset=ISO-8859-2");
ServletOutputStream out = response.getOutputStream();
URL URLhtml =new URL("http://localhost:8084/HelloWorld/XHTML.html");
if (i>0){
try{
ServletUtils.returnURL(URLhtml, out);
}catch (IOException e){System.out.println("File XHTML.html not found");}
}
}
I don't know why.
Thanks for help
Message was edited by:
rypki

