>>PS: Add J2EE library container to your project build path.
called J2EE.jar, then most recent version of which is 1.4. and cann be found here http://java.sun.com/j2ee/1
Main Topics
Browse All TopicsI am writing a class in eclipse. I want one of the contructors to take a single argument, a reference to a javax.servlet.HttpServletR
public classname(javax.servlet.Ht
}
tells me that javax.servlet.HttpServletR
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
>>PS: Add J2EE library container to your project build path.
called J2EE.jar, then most recent version of which is 1.4. and cann be found here http://java.sun.com/j2ee/1
I found servlet-api.jar in an old jboss installation dir. I placed it under "C:\Program Files\eclipse\servlet-api.
This jar file just contains a bunch of class files. By adding it to your project libraries, you are putting it on the classpath (that is, when you use certain classes in your code, it will search through everything in your project's libraries). You can simply cut and paste this jar using windows explorer and put it anywhere you want first and then add it to your libraries tab if that is what you prefer.
>> I'm not too thrilled about the path of servlet-api.jar (see above), can you tell me what might be a more apropriate path?
(1) Place all your general "JAR" files like javax.servlet.jar, mail,jar, etc.. (including your app. server JAR's) in a general folder. (say, C:\Program Files\eclipse\mylibs ).
(2) In your Eclipse, Window->Preference->Java->
So, for example if you are creating a new project with the above program, but didn't included the MYECLIPSE_LIB_HOME in your Java Build Path-Libraries. On writing:
public ClassName(HttpServletReque
}
Your eclipse auto-debugger(!) will ask you to load the PATH which you have already defined in your Classpath Variables.
Business Accounts
Answer for Membership
by: ldbkuttyPosted on 2004-12-26 at 10:58:11ID: 12903778
Add:
vletReques t;
st request) {
import javax.servlet.http.HttpSer
PS: Add J2EE library container to your project build path.
and do
public ClassName(HttpServletReque
}