文章列表
WEB.XML
<filter>
<filter-name>infoFilter</filter-name>
<filter-class>com.InfoFilter</filter-class>
<init-param>
<param-name>illegal</param-name>
<param-value>cat,pig</param-value>
</init-param>
</filter>
&l ...
<style type="text/css">
#d1{
background-color:#00FF00;
width:250px;
height:20px;
}
#d2{
background:#0099FF;
height:20px;
position:relative;
}
</style>
<script type="text/javascript">
<div id="d1">
<div id="d2" style= ...
public class ThreadSingleton
{
private static ThreadLocal tl = new ThreadLocal();
ThreadSingleton(){}
public static ThreadSingleton getInstance()
{
ThreadSingleton ts = ti.get();
if(ts == null)
{
ts = new ThreadSingleton();
ti.set(ts);
}
return ts;
}
}
-------------------------------------------- ...
dataBase.properties
jdbc.drivers=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/test
jdbc.username=root
jdbc.password=root
-------------------------------------------------------
类JdbcUtil
private static Connection conn;
private static PreparedStatement pstmt;
private static ResultS ...
order.dtd
<!ELEMENT orderlist (order+)>
<!ELEMENT order (address, receiper,date?,item+)>
<!ATTLIST order orderid ID #REQUIRED>
<!ELEMENT address (zipcode, province, city, street)>
<!ELEMENT receiper (firstname, lastame)>
<!ELEMENT date (#PCDATA)>
<!ELEMENT item ...