If you have the action can you use Reflection to step through the properties
and find the types that way?


Torsten Krah wrote:
> 
> I want to customize the conversion error messages to be more special in
> cases 
> of wrong types.
> Using a custom interceptor this is possible to do but lets say the map 
> contains an error for the field "rule.date".
> 
> Thats the OGNL expression, telling me that getRule().setDate(Date a)
> failed, 
> because a was not a Date type.
> But how to know which type it is.
> 
> I've got the action, is it possible to gernerate an OGNL Expression which
> let 
> me call something like ("myOGNLCall".getType()) which tells me that 
> java.util.Date is the type which should be returned?
> 
> thx
> 
> Torsten
> 
> 
> -- 
> Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
> Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
> 
> Really, I'm not out to destroy Microsoft. That will just be a 
> completely unintentional side effect."
>       -- Linus Torvalds
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-determine-the-Type-of-a-Bean-Property-from-String-based-OGNL-Expression-tp21498137p21504102.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to