commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arun Thomas" <>
Subject RE: using struts validator framework in java swing app
Date Mon, 11 Aug 2003 16:25:09 GMT
Unfortunately, using validator outside struts means that although it continues to successfully
report validation success or failure, the entire error message generating framework is unavailable.
 Struts merges the validator framework with additional code which actually handles all the
lookups in, etc.  

You can gain access to the error messages directly from the xml file, but transforming them
via the will have to be done separately.  


-----Original Message-----
From: Ramkumar Kolpurath [] 
Sent: Monday, August 11, 2003 4:28 AM
Subject: using struts validator framework in java swing app
Importance: High

I am trying to use struts validator framework in a java swing app. I was looking at an article which talks about loading validationresources
manually. Everything is fine except for file. How to load
this ? Is this mandatory ?

[ERROR] Validator - -reflection: null <java.lang.reflect.InvocationTargetExcepti
on>java.lang.NullPointerException at org.apache.struts.validator.Resources.getMessageResources(Resources.j
        at org.apache.struts.validator.Resources.getActionError(

In my validator-rules.xml I have an hardcoded message for required validation entry.I am not
sure where the messageresources is being looked up ?

Please let me know. I am not sure if I need to send this question to any other forum ?



View raw message