I get the digest so I don't know if this thread has
completely died. Most (all?) of my Struts 1.1 Actions
use a variation of this base class:

public abstract class BaseLookupDispatchAction extends
LookupDispatchAction {
        
protected Map getKeyMethodMap() {
return null;
}
        
public ActionForward execute(
...             
String actionParameter =
request.getParameter(mapping.getParameter());
                
// test to see if there is a "action=" in the request
if (actionParameter != null) {
// execute the appropriate method
return super.execute(mapping, form, request,
response);
} else {
// execute the default method 
return unspecified(mapping, form, request, response);
}
}

public ActionForward unspecified(
...
throw new Exception("Default action 'unspecified' not
implemented.");
}
}


        
                
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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

Reply via email to