Help ....API's

S

stevek

Looking at a program that has the following.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

java.io is ok but I can not find info on javax.servlet.*. Any help?
 
M

Michael Borgwardt

stevek said:
Looking at a program that has the following.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

java.io is ok but I can not find info on javax.servlet.*. Any help?

javax.servlet is part of J2EE, not J2SE. Any Server that deals with Servlets
and JSPs will come with a JAR file that contains those classes. It's often
calles servlet.jar.
 
R

rwarai

add %TOMCAT_HOME%\common\lib\servlet-api.jar in your classpath if your
are using j2se
 
R

rwarai

add %TOMCAT_HOME%\common\lib\servlet-api.jar in your classpath if your
are using j2se
 
R

rwarai

add %TOMCAT_HOME%\common\lib\servlet-api.jar in your classpath if you
are using j2se
 
R

rwarai

add %TOMCAT_HOME%\common\lib\servlet-api.jar to your classpath if you
are using j2se
 
R

rwarai

add ;%TOMCAT_HOME%\common\lib\servlet-api.jar to your classpath.
That should do it if your are using j2se
 
S

stevek

Thanks for the help.

Michael said:
javax.servlet is part of J2EE, not J2SE. Any Server that deals with
Servlets
and JSPs will come with a JAR file that contains those classes. It's often
calles servlet.jar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top