One way would be to have a hidden field in the form named "action", and
then have some JavaScript event handler on the two image buttons that set
the value to be transmitted for the "action" property to either
"continue" or "goback" appropriately.

Essentially, this is the same thing you would do with static HTML.

Craig


On Wed, 8 Aug 2001, Long Zhao wrote:

> I have a form like this:
> <html:form action="/*/doSomeThing.do>
> ......
> <input type="image" src="button_saveAndContinue.gif>
> <input type="image" src="button_saveAndGoback.gif>
> </html:form>
> 
> how can I make the first button do "doSomeThing.do?action=continue" and
> the second button do "doSomething.do?action=goback"
> 
> thanks in advance
> 
> Long
> 

Reply via email to