| < Day Day Up > |
|
The <logic:forward /> tag is used to forward control of the current request to a previously identified global forward element. The <logic:forward /> tag has no body and supports a single attribute name, which identifies the name of the global element that will receive control of the request. An example of using the <logic:forward /> tag is shown here:
<logic:forward name="login" />
In this example, we forward the current request to the global forward login. This resource must be defined in the <global-forwards /> section of the struts-config.xml file.
<global-forwards> <forward name="login" path="/login.jsp"/> </global-forwards>
| < Day Day Up > |
|