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. I have the following code in my ActionForward execute method:

  SearchForm s = (SearchForm) form;
  String dispatchString = (String) request.getAttribute("dispatch");

Are you searching for request parameter - the subject of your email is "rouble with dispatching on a paramter"? why do you use request.getAttribute("dispatch") in this case? try request.getParameter("dispatch"); (for sure it's there is its populated also in the form, since the form is populated from request parameters)

Borislav


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

Reply via email to