It may b the very basic questions but Can you pls tell me where is this servlet api jar?
and what is the project build path?
Main Topics
Browse All TopicsHi Experts,
I am shifted from .Net to Java so pls consider me.
I am using eclipse to build Dynamic web project in java.
But when I try to import the servlet namespace it is giving me error.
"The import javax.servlet cannot be resolved"
Hope that I have explained in details.Any help is appreciated.
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.
> Can you pls tell me where is this servlet api jar?
its not part or java or eclipse, so you need to get it elsewhere
as you are building a web project you will need a servlet container (eg tomcat), the container will have the required jar
> and what is the project build path?
you'll find its details by right clicking the project and selecting build path from menu
It defines what is needed to build your project
download commons lang and add its jar to your build path
http://commons.apache.org/
import org.apache.log4j.Logger;
import org.apache.struts.Globals;
For the above lines I m getting,
The import org.apache.log4j.Logger cannot be resolved
The import org.apache.log4j.Logger cannot be resolved
As per your comment I have included jars from
http://commons.apache.org/
and Logging in it.
Is it the right place I am looking for those packages?
>>Is it the right place I am looking for those packages?
No, commons logging is the old way for loggings.
log4j is here: http://logging.apache.org/
And struts is here http://struts.apache.org/d
Business Accounts
Answer for Membership
by: objectsPosted on 2009-04-21 at 23:46:06ID: 24201885
you need to add the servlet api jar to your projects build path
you can reference one from your container