初学Struts的一个问题
请问:
<action path="/logoff"
type="org.apache.struts.webapp.example.LogoffAction">
<forward name="success" path="/index.jsp"/>
</action>
这段话的作用是什么?实例化一个org.apache.struts.webapp.example.LogoffAction?
可LogoffAction.java
public final class LogoffAction extends Action{
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
……
}
请问这是怎么一个过程?execute()的参数谁来添?