我有一个在上下文根目录上名为authenticateAD()
的应用程序,
http:localhost:8080 / lcsd /
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:action namespace="/" name="authenticateAD" executeResult="true"></s:action>
我要实现的目标
通过upload
时
http:localhost:8080/lcsd/upload
我想调用其他方法 所以我在其他jsp中写了同样的内容
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:action namespace="/upload" name="authenticateDUC" executeResult="true"></s:action>
但这不起作用,
它没有显示在名称空间中映射的操作,但是我在自己的struts.xml中映射了authenticateDUC
STRUTS.XML
<struts>
<package name="default" extends="struts-default">
<global-results>
<result name="exception">/jsp/error.jsp</result>
<result name="sessionexpire">/jsp/error.jsp</result>
</global-results>
<action name="authenticateDUC" method="authenticateDUC" class="com.lear.web.DirectUploadAccessAction">
<result name="error">/jsp/error.jsp</result>
<result name="success">/jsp/redirect_uploadchapter.jsp</result>
</action>
//// LOT OF ACTIONS
</struts>
请帮助我