Re: trouble with dispatching on a paramter

2005-10-18 Thread Troy Bull
Thank you so much, as soon as I removed the execute method it worked perfectly Wendy Smoak wrote: From: "Troy Bull" <[EMAIL PROTECTED]> public ActionForward execute( ... ) { SearchForm s = (SearchForm) form; String dispatchString = s.getDispatch(); System.out.println("Main Dispatc

Re: trouble with dispatching on a paramter

2005-10-18 Thread Wendy Smoak
From: "Troy Bull" <[EMAIL PROTECTED]> public ActionForward execute( ... ) { SearchForm s = (SearchForm) form; String dispatchString = s.getDispatch(); System.out.println("Main Dispatch String : " + dispatchString); // manually dispatching works but is ugly //if ("run_main_search

Re: trouble with dispatching on a paramter

2005-10-18 Thread Borislav Sabev
Troy Bull wrote: Hello I am trying to get my form to dispatch to different functions inside my action handler class. I followed this tip exactly : http://www.husted.com/struts/tips/002.html (except i fixed a couple type o's). The problem is my dispatch parameter is not being recognized.

Re: trouble with dispatching on a paramter

2005-10-18 Thread Troy Bull
Here is the class declaration : public class DoSearchAction extends DispatchAction { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { SearchForm s = (SearchForm) form;

Re: trouble with dispatching on a paramter

2005-10-18 Thread Wendy Smoak
From: "Troy Bull" <[EMAIL PROTECTED]> The problem is my dispatch parameter is not being recognized. I have the following code in my ActionForward execute method: SearchForm s = (SearchForm) form; String dispatchString = (String) request.getAttribute("dispatch"); Try request.getParameter(