-
Hey guys,
I am getting compiling errors on servlets as follows:
SimpleServlet1.java:1: Package javax.servlet not found in import.
import javax.servlet.*;
^
SimpleServlet1.java:2: Package javax.servlet.http not found in import.
import javax.servlet.http.*;
^
SimpleServlet1.java:5: Superclass HttpServlet of class SimpleServlet1 not found.
public class SimpleServlet1 extends HttpServlet {
^
any suggestions on fixing it?
Manoj
-
Is servlet a package? Ive never heard if it...
These are the ones i know that are contained
in Swing.
javax.accessibility
javax.swing
javax.swing.border
javax.swing.colorchooser
javax.swing.event
javax.swing.filechooser
javax.swing.pending
javax.swing.plaf
javax.swing.table
javax.swing.text
javax.swing.tree
javax.swing.undo
javax.swing.text.html
javax.swing.text.html.parser
javax.swing.text.rtf
-
Servlet package class
Hey Dilenger4,
Serlvet has its own package. I found out last nite(with no help by sun), that you would need to download jswdk-1.0 to incorporate the package for servlets and jsps. In the autoexec.bat file, you would have the classpath point to the respect servlet.jar(to compile only the servlet files) and respect jar file for jsp(to compile the jsp files).
I can finally start testing for the servlets thank god!!! Right now, I am just using javawebserver2.0 which does very good job for servlet and jsp application server.
Here is the link to give a better understanding:
http://javaboutique.internet.com/tutorials/JSP/
Hope that helps.
-
cool thank's ill check it out. I didnt think it was included
in the core Java API. Just like when i tried including the
javax.crypto packages they were included in the JCE.
not the core API. {{{laughing}}}
Have a happy Easter!!
-
Hey Dilenger4,
Happy Easter!!!
Manoj