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
相关问答:
当知道一个日期,如何把这个日期所在旬的前后两个日期取出
比如输入20090905,就输入20090901 20090910
输出20090901 20090910
取得天数后作一下判断再把这个方法用下void set(int field, int value)
......
有谁用java做过打印发票的程序,感觉这方面不是很好控制,希望给点建议,最好能给出代码
简单点就调用window.print()
你也可以把下面代码放到你JSP中:
<html>
<head>
<title> ......
我是个新手,望高手解答
我现在已经安装了mysql,也有mysql的jdbc。但我怎么配置后,才能在MyEclipse里操作mysql呢?请高手说详细点
打开Myeclipse----window---open perspective---MyEclipse database explorer-- ......
程序如下:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java" %>
<%@ page import="com.mysql.jdbc.Driver" %>
<%@ page import ......