I have a String property on the ActionForm derived class with the name
'button'
In the html:form I have the following:
<html:submit styleClass='Buttons' property='submit'
styleId='Refresh' value='Refresh'/>
<html:submit styleClass='Buttons' property='button'
styleId='Settings' value='Settings'/>
<html:submit styleClass='Buttons' property='button'
styleId='editOrder' value='Edit Order'/>
<html:submit styleClass='Buttons' property='button'
styleId='viewOrder' value='View Order'/>
<html:submit styleClass='Buttons' property='button'
styleId='cancelOrder' value='Cancel Order'/>
<html:submit styleClass='Buttons' property='button'
styleId='executeOrder' value='Execute Order'/>
<html:submit styleClass='Buttons' property='button'
styleId='editStatus' value='Edit Status'/>
In the Action class I use the value of button to determine where I want
to go or what I want to do.
I was hoping for a simple forward or action mapping in the
struts-config.xml
Corneil du Plessis
AFA Systems
Tel: +27 11 886-6938
Fax: +27 11 789-4907
Cell: +27 82 802-5768
-----Original Message-----
From: Kiet Nguyen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 4:39 PM
To: AFASA Corneil du Plessis
Subject: FW: Dynamic action mapping
Hi Corneil,
I'm using strut and having the same problem. What is your resolution
for
having multiple submit buttons on a form. I would very much appreciated
if
you can give me some insight.
thanks,
kiet
-----Original Message-----
From: AFASA Corneil du Plessis [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 3:50 AM
To: [EMAIL PROTECTED]
Subject: Dynamic action mapping
I am looking for a way to invoke different Actions from one form
depending on the button clicked by the user.
Is there a simple way of configuring Struts to do this?
Corneil du Plessis
AFA Systems
Tel: +27 11 886-6938
Fax: +27 11 789-4907
Cell: +27 82 802-5768