要在 web.xml 中配置资源引用.java:comp/env 是组件内, 你没有引用的话它就不会出现在 Web Context 中.
解决方案 »
- 为什么用getMaxAge获取cookie的有效时间总是-1
- 关于CAS负载均衡问题
- hibernate 的log4j怎么写 才能输出sql语句 ?? 在线等
- struts1.2中如何去掉URL的后缀【高分求解答】
- 怎样学好JSP
- struts的标签可以是<html:text property="agent.name"/>这样的嵌入访问,但是最终生成<input type="text" name="agent.name" value="">
- 逻辑性强的难题!!!!!~~寻求帮助...
- 请教SSI架构下按下查询按钮,进行按人和日期查询时遇到的问题!
- jfreereport问题?郁闷呀~~~~~
- totodo大哥进来一下!
- 第一次弄,急救啊,是我的classpath问题还是文件本身的问题啊!!
- 怎样生成一个——14位时间+6位随机数——组成的20位数??顶有分
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<filter>
<filter-name>ActionFilter</filter-name>
<filter-class>school.filters.ActionFilter</filter-class>
</filter><filter-mapping>
<filter-name>ActionFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
</web-app>