> -----Original Message----- > From: PILGRIM, Peter, FM > > > -----Original Message----- > > From: Evan Schnell [mailto:[EMAIL PROTECTED]] > > > > PILGRIM, Peter, FM wrote: > > > > >There must be a better way! > > > > > >Is there anyway figure what the Struts validator is doing? > > Something like > > >getting a log dump to stdout console. If there is any error > > then output > > >is silent! > > > > > > > > Are you are still using the default logging configuration? > > The Struts > > validator writes a great deal of information to the commons-logging > > debug log. If you have not configured the logging subsystem > > to display > > debug messages, most of the validator output will never be > logged or > > displayed on the console. > > > > Have a look at: > > > http://jakarta.apache.org/struts/userGuide/building_controller > .html#logging > > Hi > > I had a look at this page, but where is the config info? I am using > JDeveloper at the mo, so I dont think I will find a log4j there. > So it gots to be simple log plug-in? >
--////-- Cut the rubbish. I just installed log4j on my box with JDeveloper and set up a quick log4j.xml config file. I then set up the classpath and libs, and jar in the right location. Guess what! I still dont see any debuggable output. <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="appender" class="org.apache.log4j.FileAppender"> <param name="File" value="Lion.log"/> <param name="Append" value="false"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d [%t] %p - %m%n"/> </layout> </appender> <category name="org.apache.struts.validator"> <priority value="debug" /> </category> <category name="org.apache.commons.validator"> <priority value="debug" /> </category> <root> <priority value ="info"/> <appender-ref ref="appender"/> </root> </log4j:configuration> How do I kick the Struts validator into giving some feedback? I know that ValidatorPlugIn loads fine, 2003-01-28 15:38:24,695 [HttpRequestHandler-297] INFO - Loading validation rules file from '/WEB-INF/validator-rules.xml' 2003-01-28 15:38:25,132 [HttpRequestHandler-297] INFO - Add ValidatorAction: required,org.apache.struts.validator.FieldChecks creditCard,org.apache.struts.validator.FieldChecks --////-- 2003-01-28 15:38:25,148 [HttpRequestHandler-297] INFO - Add ValidatorAction: email,org.apache.struts.validator.FieldChecks 2003-01-28 15:38:25,148 [HttpRequestHandler-297] INFO - Loading validation rules file from '/WEB-INF/validation.xml' 2003-01-28 15:38:25,648 [HttpRequestHandler-297] INFO - Adding FormSet 'FormSet: language=null country=null variant=null MTIA -- Peter Pilgrim, Struts/J2EE Consultant, RBoS FM, Risk IT Tel: +44 (0)207-375-4923 ******************************************************************** Visit our Internet site at http://www.rbsmarkets.com This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, you are not authorised to retain, read, copy or disseminate this message or any part of it. The Royal Bank of Scotland plc is registered in Scotland No 90312 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services Authority ******************************************************************** -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>