`
java-admin
  • 浏览: 1384250 次
  • 性别: Icon_minigender_1
  • 来自: 陕西.西安
社区版块
存档分类
最新评论

引入包import javax.servlet.http.HttpServletRequest错误

阅读更多

我在Eclipse里新建项目,添加java文件,并输入import javax.servlet.http.HttpServletRequest,但程序错误。我需要在哪儿下载什么包吗?下载后又该怎么操作呢?谢谢大家!

就用tomcat的那个servlet-api.jar就成。。。
下载好后设置一下build path..
或直接装个插件比如myeclipse,你建WEB项目时,会自动帮你添加进来。

分享到:
评论

相关推荐

    javax.servlet 的JAR包

    javax.servlet JAR包,解决找不到 import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; jar包问题

    javax.servlet.jar包下载

    当您在项目中遇到“找不到类”或“类路径异常”与Servlet相关的错误时,可能是因为缺少了这个jar包。 1. **Servlet简介** Servlet是Java中用于扩展服务器功能的接口和类的集合。它们是Java EE的一部分,允许开发者...

    tomcat10升级单个jar里面的jakarta.servlet.http.HttpServletRequest

    入参的HttpServletRequest必须为:import jakarta.servlet.http.HttpServletRequest; 运行cmd,再该目录下执行: 执行步骤:java -jar jakartaee-migration-1.0.1.jar commons-fileupload-1.4.jar commons-...

    LoginServlet

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.etoak.bean.Student; import com.etoak.dao.IStudentDao; import com.etoak.dao.StudentDaoImpl001; ...

    JAVA SCM供应链项目代码

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import mmb.rec.sys.easyui.EasyuiComBoBoxBean; import mmb.rec.sys.easyui.EasyuiDataGrid; import mmb.rec.sys...

    【项目实战案例】java校园订餐系统项目(web端)

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.apache.struts.action.Action; import org.apache.struts....

    mvc实现操作

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import cn.bean.StudentDetail; import cn.bean.User; import cn.process.DBUtil; import cn.process.JDBC; /** ...

    Filter_Listener相信代码使用

    import javax.servlet.http.HttpServletRequest; /** * Servlet Filter implementation class MyFilter */ public class MyFilter implements Filter { /** * Default constructor. */ public MyFilter()...

    Java-filter过滤器在项目开发中的应用.docx

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; public class Unlogin implements Filter { public void destroy() { ...

    Form表单上传文件(type="file")的使用

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class Filter01 implements Filter{ @Override public void destroy() { } @Override public void ...

    比较简单的添加购物车,不过只有一个小程序

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import com.liunuy.bean.CartItem; import com.liunuy.bean.ShopCart; ...

    Java filter过滤器在项目开发中的应用.doc

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; public class Unlogin implements Filter { public void destroy() {} ...

    c3p0工具包(jdbc)

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * 恶意脚本字符过滤器 * @author Administrator * */ public class CharFilter implements Filter { ...

    jQuerySlide切换

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import net.sf.json.JSONArray; import com.org.model.Advert; /*** *@Author:liangjilong *@Date:2014-5-15 ...

    servlet-api.zip

    import javax.servlet....import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import javax.servlet.ServletException;

    servlet的分步学习

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class HelloWorldServlet extends HttpServlet { protected void doGet(HttpServletRequest request, ...

    用户登录过滤相关页面,过滤URL越权访问

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; public class Unlogin implements Filter { public void destroy() { ...

    springmvc的一个简单实例

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation....

    servlet3.0新特性源代码

    import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.Part; /** * @project servlet3.0 * servlet3.0的文件上传 * @date:2012-5-21 *在...

Global site tag (gtag.js) - Google Analytics