I have an application which called authenticateAD()
on context root,
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>
What I want to achieve
when upload
is passed
http:localhost:8080/lcsd/upload
I want to call some other method so I wrote the same in other jsp
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:action namespace="/upload" name="authenticateDUC" executeResult="true"></s:action>
but this is not working,
It shows no action mapped in namespace, but I mapped authenticateDUC
in my struts.xml
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>
please help me