Hi Steven,

 

There is probably a more *struts* oriented approach, but give your buttons unique names, then in your action class perform method, call request.getParameter (<button name>) if the value returned is not null, then that button was clicked.

 

Jon.

 

-----Original Message-----
From: Steven Leija [mailto:[EMAIL PROTECTED]]
Sent: 30 May 2001 02:54
To: Struts
Subject: Multiple Buttons

 

Hey All,

 

I'm working on creating a form that has multiple buttons, and based on the button selected, different actions occur.  Is there a way to specify a value for a button and get that value in the action class?

 

Thanks!

 

Steven

Reply via email to