struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pat Quinn" <>
Subject Multiple Submit Buttons + Internationalisation
Date Mon, 09 Dec 2002 11:35:08 GMT
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?


MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message