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");
System.out.println("this is execute");
System.out.println(dispatchString);
System.out.println(s.getDispatch());
and it prints out the following
05/10/18 07:30:28 this is execute
05/10/18 07:30:28 null
05/10/18 07:30:28 run_main_search
what I want is the method run_main_search to execute instead.
My strut-config contains the following action mapping:
<action path="/doSearch" name="SearchForm"
type="bum.model.DoSearchAction" unknown="false" parameter="dispatch">
<forward name="gms" path="/debug.jsp"/>
</action>
Any ideas?
Thanks in advance
troy