so i finally got around to playing with the new exception handling features
and it occurred to me that it would be really nice if you could specify the
bundle that a resource is stored in.  i don't think it would be too big of a
headache to do this (simple change to ExceptionHandler, and an addition to
the struts-config and its parsing logic), but it might lead to a more
general inconsistency in struts in that resource string keys are always
associated with bundle specified for the action servlet.  (i.e., you don't
get to specify the bundle anywhere else.)  is there some a general
philosophy on this?  maybe sometime long ago someone decided "all resource
strings will be retrieved from one resource bundle..."

also, i just want to make sure i know what's what...  the purpose of
AppException is just to provide a localizable form of exception, right?  if
so, (and i'm being really nitpicky) why not call it LocalizableException or
something a little more descriptive.  and just to be even more nitpicky, is
there a reason that AppException's constructor doesn't take an Object array
instead of AppException(key, val0, val1, val2, ...)?

just so i don't get accused of being nothing but critical, i really am
*very* keen on this feature.  what's not to love?  it's wonderfully simple
and elegant, not to mention quite useful.  ok, enough gushing...

thanks in advance,

ab

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to