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
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
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.
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;
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(
5 matches
Mail list logo