想写的structs2的拦截器最后调用flex可是 不到错误页面!小弟刚学 请大伙赐教111这个是struct xml的定义
<!-- 定义一个拦截器 -->
<interceptors>
<interceptor name ="auth" class ="com.common.AuthorityInterceptor" />
</interceptors> <global-results>
<result name="login">/index.jsp</result>
<result name="sucess">/SFJTest-debug/DeTree.html</result>
</global-results> <action name="showUser" class="UserActon" method="getAllUser">
<interceptor-ref name="auth"></interceptor-ref>
<result type="xslt"></result>
</action>222这个是那个过滤器 public String intercept(ActionInvocation arg0) throws Exception {
// TODO Auto-generated method stub
Object obj= ServletActionContext.getRequest().getAttribute("parm");
if(obj!=null)
return arg0.invoke();
else
return ActionSupport.LOGIN;
}
333 可是走return ActionSupport.LOGIN;的时候 在flex页面中出错了private function Warn(e:FaultEvent):void{
//ExternalInterface.call("function(){window.location.href='http://localhost:8080/SFJTest/SFJTest-debug/DeTree.html';}");
Alert.show(e.message.toString() );
}
在这个方法中把index.jsp页面的内容给打出来了
<!-- 定义一个拦截器 -->
<interceptors>
<interceptor name ="auth" class ="com.common.AuthorityInterceptor" />
</interceptors> <global-results>
<result name="login">/index.jsp</result>
<result name="sucess">/SFJTest-debug/DeTree.html</result>
</global-results> <action name="showUser" class="UserActon" method="getAllUser">
<interceptor-ref name="auth"></interceptor-ref>
<result type="xslt"></result>
</action>222这个是那个过滤器 public String intercept(ActionInvocation arg0) throws Exception {
// TODO Auto-generated method stub
Object obj= ServletActionContext.getRequest().getAttribute("parm");
if(obj!=null)
return arg0.invoke();
else
return ActionSupport.LOGIN;
}
333 可是走return ActionSupport.LOGIN;的时候 在flex页面中出错了private function Warn(e:FaultEvent):void{
//ExternalInterface.call("function(){window.location.href='http://localhost:8080/SFJTest/SFJTest-debug/DeTree.html';}");
Alert.show(e.message.toString() );
}
在这个方法中把index.jsp页面的内容给打出来了
解决方案 »
- JSP页面运行报404错问题?求解答??
- 关于tomcat5.0
- 求助!!!The Struts dispatcher cannot be found. 错误
- HTTP method POST is not supported by this URL
- 跪求struts如何防止重复提交的答案
- 如何用jsp实现对文件的删除,拷贝,和剪切?
- 请问:怎样把int转换为String,谢谢
- 各位大虾请帮忙
- 我写了一段SERVLET,在JAVAC时说javax.servelet不存在?我该怎么办呀?????????
- Easyui datagrid怎么在后台接收前台传来的json数据
- 求救:根据条件判断,插入多条记录问题
- hibernate3 是XML的用的多,还是Annotation用的多,请指教
我找到点错误 在alert.show()时候有点错误 说是无法解释代码