Multiple Submit Buttons + Internationalisation

I have a jsp with three submit buttons (update, delete etc..) each with a value as loaded from the resource bundle:

<input type="submit" name="Submit" value="<bean:message key='label.update'/>


In my action class i do the following to identify which button has submitted the form:

if ("Update".equalsIgnoreCase(pRequest.getParameter("Submit"))) {
//Process my update
}

This works fine when viewed from a browser with an English locale, if the locale is anything different it fails.
Its obvious why this doesn't work as i've hardcode the action class to one locale (English).

Can someone please suggest a different approach?

Cheers





_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus


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

Reply via email to