----- Original Message ----- 
From: "Tamia Ramírez" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "yan"
<[EMAIL PROTECTED]>
Sent: Friday, August 01, 2003 2:04 PM
Subject: RE: 2 different submits on a single JSP - how?


> Give a different value to every submit... in your form make just one
submit
> and ask for its value, so you can know with one they chosse:
>
> <input type="submit" value="Login">
> <input type="submit" value="request"
>

I would consider giving different names to the submit buttons. The reason
is that the value attributes are the display labels of the buttons. They
could
be changed over time. Using the name attributes your business logics
would not have to be changed even if your labels are changed.

Jing
Netspread Carrier
http://www.netspread.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to