struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pat Quinn" <pat_quinn2...@hotmail.com>
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?

Cheers





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


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message