Help coderanch get a
new server
by contributing to the fundraiser

Jon Bbbb

Greenhorn
+ Follow
since Apr 27, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jon Bbbb

seetharaman venkatasamy wrote:

Jon Bbbb wrote: i need to find a way for the action class to notice what submit button is being pressed and change the struts-forward based on that.



<html:button> or <html:submit> has value attribute



how do you use said value attribute to handle page actions?
15 years ago
i'm trying to get my pages to have multiple submit buttons and am having a hard time finding any concrete example.

here is what i want to do:

i have 4 pages: main, list, confirm, logout

confirm has three buttons, cancel, go back, submit
cancel leads to main
go back leads back to list
submit leads to logout

cancel and submit work fine, by default, with the struts that i've got setup
however, despite all the things i've tried, i can't seem to get the 'go back' button to work. basically, i need to find a way for the action class to notice what submit button is being pressed and change the struts-forward based on that.

any tips/sample code?

thanks!
15 years ago