logic:forward

 < Day Day Up > 



<logic:forward />

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 > 



Professional Jakarta Struts
Professional Jakarta Struts (Programmer to Programmer)
ISBN: 0764544373
EAN: 2147483647
Year: 2003
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net