The following code is giving error as:如何使用<a href> tag
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
Hi i changed the code and it worked fine instead of writing as Disconnect調用操作類我寫它爲Disconnect – pankaj 2011-03-25 08:56:40