The following code is giving error as: There is no Action mapped for namespace / and action name >.
code: .jsp file:
<a href="<s:url action='DisconnectAction' />">Disconnect</a>
struts.xml
<action name="DisconnectAction" class="ActionPackages.DisconnectAction">
<result name="success">/JSP/mytemplate.jsp</result>
<result name="input">/JSP/mytemplate.jsp</result>
<result name="error">/JSP/mytemplate.jsp</result>
<result name="failure">/JSP/mytemplate.jsp</result>
</action>
I want to perform action and keep the current accessing page only which is mytemplate.jsp
Aucun commentaire:
Enregistrer un commentaire