一般情况下,在struts-config.xml里面的action配置如下:
<action
path = "/test"
name = "testForm"
type = "package.TestAction"
scope= "request"
parameter="method"
validate="true">
<forward name="success" path="/success.jsp"/>
...
</action>
type指的是这个action对应的类,用来处理请求
如下,如果没有配type,他默认会用哪个类来处理呢?
<action
path = "/test"
name = "testForm"
<!-- type = "package.TestAction" -->
scope= "request"
parameter="method"
validate="true">
<forward name="success" path="/success.jsp"/>
...
</action>