You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pat Quinn <pa...@hotmail.com> on 2003/02/06 20:26:56 UTC
xdoclet with struts
Hi guys,
Is anyone out there using xdoclet with struts?? I've had a look a some
samples that come with xdoclet eg below..... any comments on this
approach??? I assume it generates the struts-config.xml??? If so its a
rather nice way to keep your deployment settings with your source code....
/**
* Simple class to test Jakarta Struts generation (Jakarta Struts 1.2 beta 2
only).
*
* @struts.action
* path="/struts/bar"
*
* @struts.action-forward
* name="success"
* path="/struts/getAll.do"
* redirect="false"
*
*/
public final class StrutsDispatchAction extends DispatchAction
{
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
{
return mapping.findForward("success");
}
}
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org