struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elijah Jacobs" <elijahjac...@hotmail.com>
Subject ActionError() placeholders: a new suggestion?
Date Thu, 18 Apr 2002 20:06:12 GMT
Hi All,

Please tell me if this has already been suggested.

Why not have a new contructor for ActionError such
ActionError(java.lang.String key, java.util.Map) ?

The key value pair for the Map can be placeholder/value.

ie. In the ApplicationResources.properties file :
instead of :    You have won {0} please collect at {1}  ( where 0 = price
and 1 = location }
You can have:   You have won {price} please collect at {location} ( a lot
easier to read - and change )

where Map would be like:
map.put("price", "A million");
map.put("location", "Somewhere");

Is an alphanumeric placeholder possible in struts?  and is this a new
suggestion?

thanks,
- ej

--
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