数据库配置 datebase.properties driver=com.mysql.jdbc.Driver url=jdbc:mysql://127.0.0.1:3306/infos username=root password=root /* Navicat MySQL Data Transfer Source Server : loaderman Source Server Version : 50540 Source Host : localhost:3306 Source Databa…
在Eclipse中配置Tomcat 创建和运行Servlet/JSP 步骤一:在Eclipse中配置Tomcat(注意下载Eclipse IDE for Java EE Developers) (1)在Eclipse中配置Tomcat.选择Window→Preferences命令,在打开的对话框左边列表框中选择Server节点中的Runtime Environments.单击窗口右侧的Add按钮,打开New Server Runtime Environmen对话框,在该对话框中可选择服务器的类型…
在写Jsp文件时,引入script源文件(<script type="text/javascript" src="${pageContext.request.contextPath }/scripts/jquery-1.7.2.js"></script>)时出现了这样的错误: javax.servlet.jsp.PageContext can not be to a type 原因是项目中没有添加jar包: 解决办法:在eclipse中,sr…
在eclipse环境下用maven出现:javax.servlet.jsp.PageContext cannot be resolved to a type. 这是由于没有引入jsp-api引发的问题.在pom.xml引入: <dependency> <span style="white-space:pre"> </span><groupId>javax.servlet</groupId> <artifactId>…