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]>
- Re: Multiple Submit Buttons + Internationalisation Pat Quinn
- Re: Multiple Submit Buttons + Internationalisation John D Hume
- Re: Multiple Submit Buttons + Internationalisatio... Gemes Tibor
- Re: Multiple Submit Buttons + Internationalis... V. Cekvenich
- RE: Multiple Submit Buttons + Internationalis... Justin Ashworth
- Re: Multiple Submit Buttons + Internation... Gemes Tibor
- RE: Multiple Submit Buttons + Intern... Justin Ashworth
- RE: Multiple Submit Buttons + Internationalisation Edgar P. Dollin
- Re: Multiple Submit Buttons + Internationalisation Pat Quinn
- RE: Multiple Submit Buttons + Internationalisation Edgar P. Dollin