我的JSP只能通过ACTION访问?
直接访问XXX.JSP报错:
org.apache.jasper.JasperException: The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]
通过ACTION的 <action name="regist" class="accountAction" method="regist">
<result name="regist">/pages/register.jsp </result>
</action>
没任何问题!这大概是什么原因?class="accountAction"是通过spring的
<bean name="accountAction" class="com.jnlan.accmanage.action.AccountAction" scope="prototype">
<property name="passPortBO">
<ref bean="passPortBOImpl" />
</property>
</bean>
得到的。配置方面确信没什么异常。
没有找到struts转发器,你没有添加struts jar包吧,还有在web.xml也有添加dispatcher的配置的
肯定有了。不然SSI框架跑不起来
现在是做好的注册、登录都是OK的。但JSP不能直接在地址里由XXX.JSP打开- -!难道是 <%@ taglib uri="/struts-tags" prefix="s"%>找不到?我把struts-default.xml拿出来放在SRC目录下。
哦?
帮偶看下
XML code
Code highlighting produced by Actipro Cod
相关问答:
我想登录后,如果登录成功就去执行某个页面
我现在的代码是这样的:
if(rs.next()){
session.setAttribute( "username" , user);
<jsp:include page="login.jsp" />// ......
问题描述:
例如我要显示的内容如下所示
一级目录1
一级目录1子类1
子类1
一级目录1子类2
......
jsp开发的时候能够导出word和excel,但是是否能够直接导出为acess格式、dbf格式的文件?
高手指点下,最好能够给个例子,谢谢!!!
javadbf这个jar一切问题解决了。
下载地址为:http://sarovar.org/projects/ ......
一个JSP页面接收其他页面提交过来的FORM表单,但是要求只接收当前站点及其子站点提交过来的FORM表单,其他站点提交过来的表单不接收,这个怎么设置?
用过滤器
filter
将当前站点及其子站点放一个目录
然 ......
<html><head><title>[@title]</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<script language='javascript'>
function diyCheck ......