struts2+spring+mysql 的问题 - Java / Web 开发
启动Tomcat 时就报 我知道可能是web.xml 但不知道是哪出的问题
严重: Parse Fatal Error at line 1196 column 3: The element type "welcome-file-list" must be terminated by the matching end-tag "</welcome-file-list>".
org.xml.sax.SAXParseException: The element type "welcome-file-list" must be terminated by the matching end-tag "</welcome-file-list>".
这个是我的web.xml
<?xml version="1.0" encoding="gbk"?>
<web-app version="2.4" xmlns=" http://java.sun.com/xml/ns/j2ee"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<!-- 配置数据源 -->
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/zxdy</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<!--web集成Spring配置==== begin-->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationC ontext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener< stener-class
相关问答:
一个JSP页面接收其他页面提交过来的FORM表单,但是要求只接收当前站点及其子站点提交过来的FORM表单,其他站点提交过来的表单不接收,这个怎么设置?
用过滤器
filter
将当前站点及其子站点放一个目录
然 ......
table怎么绑定数据库,并且用JavaScript实现翻页。。。。。。。。。。JavaScript能向JSP页面传递参数吗
你说的问题有点那个。。,不好回答。。。。
jsp中table是需要html代码与页面端获取数据库查询后的信息进行 ......
如: @superwaring("unchecked");
这个里面都可以取哪些值啊,还有类似的 @superwaring标签有哪些啊
没用过。。
看jee的api
javax.persistence里
@superwaring("unchecked");只是忽略 ......
我用的是mysql6.0为什么一创建两个表这间用外键来连接时就说创建不了:can"nt create table ...
你的语句是什么?你的表是什么存储引擎? 如果是myisam 则不支持外键,你需要把表改为inndb
貼出SQL ......
程序如下:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java" %>
<%@ page import="com.mysql.jdbc.Driver" %>
<%@ page import ......