Team,

I'm fairly new to Struts and would like to know if the following is possible.

When returning an ActionForward object from the perfom method of a Action 
object, (usually acheived by mappings.findForward("name")) is it possible to 
have the Struts framework execute a requestDispatcher.include() rather than a 
requestDispatcher.forward()?

ie:

public class MyAction extends org.apache.struts.action.Action {
  public org.apache.struts.action.ActionForward perform(
      org.apache.struts.action.ActionMapping actionMapping, 
      org.apache.struts.action.ActionForm actionForm, 
      javax.servlet.http.HttpServletRequest request, 
      javax.servlet.http.HttpServletResponse response) 
        throws java.io.IOException, javax.servlet.ServletException {

    // Is it possible that the Struts framework execute a
    // requestDispatcher.include, rather than a forward on
    // the resulting ActionForward?
    return actionMapping.findForward("success"); 
  }

}

-- 
Regards,

Brent Burgess
JP
#####################################################################################
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from any system and destroy and copies.
#####################################################################################

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to