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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>