Like this:
In your
JSP:
<html:submit property="colorButton" value="red" />
<html:submit property="colorButton" value="blue" />
<html:submit property="colorButton" value="green" />
<html:submit property="colorButton" value="orange" />
In your ActionForm:
In the execute method of your Action class:
You could also make your Action extend
DispatchAction.
P.S. Just so you know, in the case of a cancel button, The Action class has an
isCancelled method that accomplishes the same thing as your code above.
[ October 05, 2006: Message edited by: Merrill Higginson ]