LookupDispatchAction will be used by using reverse lookup against resource
bundle properties file to find out method to be called , but it required
that methods to be in same action class according to my knowledge ,
according to condition written in question
you should have two classes , it
force you to have two different action mapping associated with each action
class, according to me best way is to write one routing action class and
action mapping associate with it , so that when you submit page , execute
method in this class should be called within that you check value of
parameter property associated with both submit buttons(previous & submit)
and according to value of the property , you can route your control to
corresponding separate action required. e.g
your JSP would have the following format for submit buttons:
<html:form action="/test">
<html:submit property="method">
<bean:message key="button.add"/>
</html:submit>
<html:submit property="method">
<bean:message key="button.delete"/>
</html:submit>
</html:form>
Try it out.
Regards
Mandar Velankar