ContactUs

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

What is ForwardAction ?

The struts framework ForwardAction class provides a mechanism for forwarding to a specified URL. In an MVC Web application, all requests to the application are supposed to flow through the Controller servlet.

 

This will ensure that the Controller layer of the application has an opportunity to prepare any resources that may be needed to handle the request meaning selecting the correct module and so on. The struts framework ForwardAction is provided as a simple utility action that can be used for scenarios in which you simply want to link to a JSP page.

 

Example:

 

<action parameter="/Welcome.jsp"

       path="/Welcome"

       type="org.apache.struts.actions.ForwardAction">

</action>

Related Posts Plugin for WordPress, Blogger...
Flag Counter