working with JSP
// jsp_test.java: this is a simple JSP example that will print something on the web browser
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class jsp_test extends HttpServlet
{
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
PrintWriter out = response.getWriter();
out.println("Hello World");
}
}
... however, I still managed to get the below errors...
C:\Program Files\Xinox Software\JCreator LE\MyProjects\jsp_test\jsp_test.java:4: package javax.servlet does not exist
import javax.servlet.*;
^
C:\Program Files\Xinox Software\JCreator LE\MyProjects\jsp_test\jsp_test.java:5: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
C:\Program Files\Xinox Software\JCreator LE\MyProjects\jsp_test\jsp_test.java:7: cannot resolve symbol
symbol : class HttpServlet
location: class jsp_test
public class jsp_test extends HttpServlet
^
C:\Program Files\Xinox Software\JCreator LE\MyProjects\jsp_test\jsp_test.java:9: cannot resolve symbol
symbol : class HttpServletRequest
location: class jsp_test
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
^
C:\Program Files\Xinox Software\JCreator LE\MyProjects\jsp_test\jsp_test.java:9: cannot resolve symbol
symbol : class HttpServletResponse
location: class jsp_test
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
^
C:\Program Files\Xinox Software\JCreator LE\MyProjects\jsp_test\jsp_test.java:9: cannot resolve symbol
symbol : class ServletException
location: class jsp_test
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
... any help is appreciated in order to get me out of the mess that I'm in right now. Thanks in advance.

