Struts-example中EditRegistration.do??

lifewest 04-06-02

请问在Struts-example中有个EditRegistration.do怎么在Struts-config.xml中怎么没有它的actionmapping?那他是怎么forward的?
我是新手,请多帮忙:)

Hejrcc
2004-06-25 11:39

在 web.xml 文件中指定了struts-config-registration.xml:
...
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml, /WEB-INF/struts-config-registration.xml</param-value>
</init-param>
...

在文件:struts-config-registration.xml 中指定了editRegistration:
...
<action path="/editRegistration"
type="org.apache.struts.webapp.example.EditRegistrationAction"
attribute="registrationForm"
scope="request"
validate="false">
<forward name="success" path="/registration.jsp"/>
</action>

...

Hejrcc
2004-07-01 15:45

怎么楼主发了帖后就再也不见人影了???