Goodz13
January 30th, 2003, 07:46 AM
Sorry about this. I ment to remove a duplicate post, but an error occured in the process. I had the thread in my Cache, so I'm about to post the entire thread again.
Aleximage
Hi,
I want to set up a web server for supporting servlet and JSP and I need to do a project using servlet and JSP also.
I have installed JDK1.3 and JWSDP in my linux server. However, I can't run jsp page and I can't complie the servlet file. "import java.servlet.* does not exsit " message is given out when I complie the file xxx.java. xxx.java is the servlet code.
What should I do for the setup?
Thanks
Alex
sbrothy
Shouldn't that be javax .servlet.* ?
Aleximage
I have tried "javax.servlet.*" still doen't work.
and where should I put the xxx.jsp file and the servlet file?
thanks
Alex
sbrothy
I do not have much experience with Java on Linux. On a Windows platform I would make sure that the CLASSPATH includes the necessary classes (in you case the javax.servlet.* classes).
Using, for instance, TOMCAT these would probably be packaged in jar files in the %TOMCAT_HOME%\server\lib directory or some such place. Try doing a simple search in the filesystem starting with the root directory of your JSP server searching all "jar" (and perhaps zip or tar or whatever packaged files are called on Linux) for occurences of "javax.servlet". You most likely just need to add any jars found by such a procedure to the CLASSPATH environment variable.
If the search doesn't turn up anything try downloading what you need from SUN. You could try:
http://java.sun.com/products/servlet/
Again:
I do not have much experience with Java on Linux so my advice may be of no value.
Aleximage
Hi,
I want to set up a web server for supporting servlet and JSP and I need to do a project using servlet and JSP also.
I have installed JDK1.3 and JWSDP in my linux server. However, I can't run jsp page and I can't complie the servlet file. "import java.servlet.* does not exsit " message is given out when I complie the file xxx.java. xxx.java is the servlet code.
What should I do for the setup?
Thanks
Alex
sbrothy
Shouldn't that be javax .servlet.* ?
Aleximage
I have tried "javax.servlet.*" still doen't work.
and where should I put the xxx.jsp file and the servlet file?
thanks
Alex
sbrothy
I do not have much experience with Java on Linux. On a Windows platform I would make sure that the CLASSPATH includes the necessary classes (in you case the javax.servlet.* classes).
Using, for instance, TOMCAT these would probably be packaged in jar files in the %TOMCAT_HOME%\server\lib directory or some such place. Try doing a simple search in the filesystem starting with the root directory of your JSP server searching all "jar" (and perhaps zip or tar or whatever packaged files are called on Linux) for occurences of "javax.servlet". You most likely just need to add any jars found by such a procedure to the CLASSPATH environment variable.
If the search doesn't turn up anything try downloading what you need from SUN. You could try:
http://java.sun.com/products/servlet/
Again:
I do not have much experience with Java on Linux so my advice may be of no value.