解决方案 »
- 做增加和修改功能时,jsp页面上的值传到后台都为null
- struts2.0
- JSP如何接受用户输入的数据呢?之后又怎样处理?
- 如何用JSP禁止IE回退和前进事件,急急。。。
- 有这样的函数嘛?
- 请问可以在JSP中得到表单,按钮的名字吗??急!!
- 关于<form name="abc" enctype="multipart/form-data"> 类型 request数据的问题??
- jb8 编译出现这个问题,什么愿意呢?
- 问个request的基础问题。。。。。。。关于后台取前台值得
- Spring注解报错:Error creating bean with name
- eclipse中代码变成了隔行显示。。
- c:foreach 循环list<Map<String,String>>输出表格问题
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
显然是配置了监听 文件载入方式也对 是不是spring包没导全呢
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
这行代码放到web.xml的最上面试试
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext-*.xml</param-value>
</context-param>这里配置的是applicationContext-*.xml
你的文件是applicationContext.xml控制台的提示信息显示spring和struts整合是成功的?这个有日志吗?
</filter-mapping>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext-*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener> 放到最上面 不然实例化不了