Please see the link below
http://dev.eclipse.org/new
Can you post the error message that you are getting?
Main Topics
Browse All TopicsI'm trying to create a web app with Eclipse, but when I create the servlet, I get the error "Cannot be resolved to a type" everywhere. For HttpServletRequest, HttpServletResponse, javax.servlet, etc. What is the problem?
import java.io.IOException;
import javax.servlet.ServletExcep
import javax.servlet.http.HttpSer
import javax.servlet.http.HttpSer
/**
* Servlet implementation class for Servlet: Acceptinfo
*
*/
public class Acceptinfo extends javax.servlet.http.HttpSer
static final long serialVersionUID = 1L;
/* (non-Java-doc)
* @see javax.servlet.http.HttpSer
*/
public Acceptinfo() {
super();
}
/* (non-Java-doc)
* @see javax.servlet.http.HttpSer
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("t
PrintWriter out = response.getWriter();
out.println("<HTML><HEAD><
"</HEAD><BODY>Hello Client!</BODY></HTML>");
out.close();
}
/* (non-Java-doc)
* @see javax.servlet.http.HttpSer
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doGet(request, response);
}
}
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.
Please see the link below
http://dev.eclipse.org/new
Can you post the error message that you are getting?
I would recommend creating a user library (so you can use it later) and then adding that library to your project.
Create a User Library:
- Go to "Window" > "Preferences..."
- In the menu on the left, expand "Java" > "Build Path" > "User Libraries."
- Click "New..."
- Type something meaningful, like "J2EE 1.4" but do NOT check "System library."
- Select the newly-created library and click "Add JARs..."
- Browse to where you put the servlet-api.jar file, select it, and click "Open."
- If you have jsp-api.jar, add it to this library as well.
- Click "OK."
Adding it to Your Project:
- Right-click on your project folder and select "Properties."
- In the menu on the left, select "Java Build Path."
- Click the "Libraries" tab.
- Click "Add Library..."
- Select "User Library" and click "Next >."
- Check the box next to the library you created previously and click "Finish."
Business Accounts
Answer for Membership
by: malfunction84Posted on 2007-09-23 at 19:27:37ID: 19946235
Those classes don't come with the JRE, so you need to include the Java EE jars in your project. Specifically, you want servlet-api.jar, which you can get from here:
ourses/sro llins/cs34 1-s04/web/ servlet-ap i.jar
http://www.mtholyoke.edu/c