Hello,
I have a form, lets say that has a select list on it.
Under it I have the ability to
[edit], [delete], [modify] or [cancel].
Each of these buttons goes to a different <action />
but the form page is set for just one of the actions. And to top this off, I
cannot do a href_link, I need to submit the form to get the selected value from
the form.
We are using links, but they are css links (See below). One of my guys said we
could just use the javascript (see last link) and then change the action of the
form, but I was hoping there was a cleaner way.**
Here is the actual page links. They appear to only do a href and not a submit,
but even if they did submit, I need to change action.
The last one calls a javascript, changes the action and submits, but I feel it
is not clean.
Is there a cleaner way to handle this.
*****Optimal would be a tag that submits to a certain action:******
<html:link action="/newUser" styleClass="mainLink">New
User</html:link>
<html:link action="/editUser" styleClass="mainLink">Edit
User</html:link>
<html:link action="/deleteUser" styleClass="mainLink">Delete
User</html:link>
<html:link action="/mainAdmin" styleClass="mainLink">Cancel</html:link>
<html:link href="javascript:editUser();" styleClass="mainLink">Foo
Bar</html:link> **
I am sorry for all questions in this regard, but I could use some help.
Scott