As a newbie looking through struts dox, I could not find anything like this...
In: web.xml
a <servlet-mapping>
maps from <url-pattern>, e.g. *.do
to <servlet-name>, the logical name of a <servlet>
In: struts-config.xml
an <action> is carried out by the <servlet>
maps from path="path", an application-relative url, starting with / and omitting the extension
to name="name", the logical name of a <form-bean>
- ... and one of...
forward="forward or url", a direct branch to a <forward> or a url or a tiles <definition>, skipping the controller
include="forward or url", a direct branch to a <forward> or a url, skipping the controller
type="class", a Java class to process the <form-bean>
- then...
either an <exception>, an exception handler
... or a <forward> (logical name) to display the results.
a <form-bean>
maps from name="name", its logical name, referenced by <action>
to type="class", a Java class to process the data from the form
... and <form-property> elements, which declare the data the Struts framework is to gather from the request
a <forward>
maps from name="name"
to path="path" the uri of a resource
an <exception>
maps from key="key"
and type="class", a Java exception class
to handler="class", a Java class to handle the exception
and path="path" the uri of a resource
In: tiles-config.xml
a <definition> defines a set of tiles to be referenced by Struts
Questions
- Is this done better somewhere else?
Is it correct? (I doubt it -
- Is it useful?