struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Jain" <>
Subject Re: DynamicForwardAction
Date Fri, 07 Mar 2003 11:17:55 GMT
> You can define an "unknown" action that responds to requests that no
> other actions are mapped to.  See section 4.7:

Finally got it working... If no action exists for a request that was
mapped to the Struts servlet, the request is forwarded to the default
servlet. This could be extended somewhat to handle forwarding to
specific servlets for handling other kinds of dynamic content. One minor
issue however is that I am not sure whether the default servlet has the
same name on all servlet containers.

public class DefaultAction
 extends Action
 public ActionForward execute(...)
  throws Exception
    forward(request, response);
  return null;


Eric Jain

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message