Struts Action returns ActionForward object which is responsible for
the view component.
like this
public ActionForward execute(ActionMapping mapping, ActionForm inForm,
HttpServletRequest request, HttpServletResponse response) throws
Exception {
// blah
//blah
return mapping.findForward("welcome");
}
But i dont want the view..... what i would do ?
i want to call this method only but dont want to show any view.
is that possible in Struts ?
Aj-India - 23 Jan 2006 08:27 GMT
U could give the forward name for the given target in
struts-config.xml, the same view from which this action class is
invoked.
raavi - 23 Jan 2006 11:27 GMT
Hi
if u dont want the view and want to perform only the execution of
your action, then make your forward null.i.e write the program code as
return mapping.findForward(null);
hope this may help you.
gk - 23 Jan 2006 11:47 GMT
thank you
> Hi
> if u dont want the view and want to perform only the execution of
> your action, then make your forward null.i.e write the program code as
> return mapping.findForward(null);
> hope this may help you.