1.在计算自然周时 cal.roll(Calendar.DAY_OF_YEAR, -(n - 2)); 导致计算自然周最后一天周日统计时,搜索的范围是下一周的时间段
2.年月日由于没有转化date型,而是直接写的sql所以“2007-9-7”没有匹配“2007-09-07”
private String andDate(String sql, String limit) {
if (limit != null && !"".equals(limit)) {
Calendar cal = Calendar.getInstance();
String month_str = "";
String day_str = "";
2.年月日由于没有转化date型,而是直接写的sql所以“2007-9-7”没有匹配“2007-09-07”
private String andDate(String sql, String limit) {
if (limit != null && !"".equals(limit)) {
Calendar cal = Calendar.getInstance();
String month_str = "";
String day_str = "";
if u use <img src="/test.gif">, u should put the test.gif in webapps/Root/ folder, so that, i suggest that to write <img src="<%=request.getContextPath()%>/test.gif">!
and if u wanna use the Root folder for ur webapp.
Just delete the Root folder. and write as before.
and if u wanna use the Root folder for ur webapp.
Just delete the Root folder. and write as before.
1 编辑server文件(x:\tomcat\conf\server.xml)2 只要在server.xml文件中加入如下代码即可:注意:(在server.xml中,此语句 <Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
后面添加如下语句:)
<!-- This is my site path,power by aaa -->
<Context path="/aaa" docBase="C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\aaa" debug="0"
reloadable="true" crossContext="true">
</Context>
<!-- Site setup end -->3 因为在tomcat启动时要读取server文件的信息,所以更改server文件后,一定要重新启动tomcat。
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
后面添加如下语句:)
<!-- This is my site path,power by aaa -->
<Context path="/aaa" docBase="C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\aaa" debug="0"
reloadable="true" crossContext="true">
</Context>
<!-- Site setup end -->3 因为在tomcat启动时要读取server文件的信息,所以更改server文件后,一定要重新启动tomcat。
Tags: TOMCAT