This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Difference between Forward Action and Include Action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Difference between Forward Action and Include Action" Watch "Difference between Forward Action and Include Action" New topic
Author

Difference between Forward Action and Include Action

samir ware
Ranch Hand

Joined: Jul 27, 2005
Posts: 192
hi,
Can anybody explain me the difference between the Forward Action and Include Action.? Thanks in advance

Regards,
Samir
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
I am not sure of the exact difference. The ForwardAction is handy when you do not need to perform any logic and just need to display a page. About IncludeAction...my "Programming Jakarta Struts" First Edition book says: "was created to make it easier to integrate servlet-based components" and goes on to say that it provides the same behavior as "using the include() method of a RequestDispatcher". I don't really know what that means but I have never had a need to use ForwardAction.

- Brent
 
 
subject: Difference between Forward Action and Include Action
 
Similar Threads
forward and include of RequestDispatcher
forward, include and sendRequest
include directive and include action
forward() VS include()
Request dispatcher