Debug output

2003-11-03 Thread Norr, Peter
How do I adjust the logging level of struts?

I am getting way too many DEBUG messages..

Peter

--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



RE: Debug output

2003-11-03 Thread Ramadoss Chinnakuzhandai
Try
set Threshold level to higher in your root logger or log4j.properties/xml file(Levels 
Fatal>>Error>>Warn>>Info>>Debug).
-Ram


-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 5:06 PM
To: 'Struts Users Mailing List'
Subject: Debug output


How do I adjust the logging level of struts?

I am getting way too many DEBUG messages..

Peter

--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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


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



Re: Debug output

2003-11-04 Thread Micael
Look in WEB-INF/classes.

At 02:06 PM 11/3/2003, you wrote:
How do I adjust the logging level of struts?

I am getting way too many DEBUG messages..

Peter

--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


RE: Debug output

2003-11-04 Thread Norr, Peter
Does anyone have more detail on how to adjust the logging level in struts?

Peter


-Original Message-
From: Micael [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 2:10 PM
To: Struts Users Mailing List
Subject: Re: Debug output


Look in WEB-INF/classes.

At 02:06 PM 11/3/2003, you wrote:
>How do I adjust the logging level of struts?
>
>I am getting way too many DEBUG messages..
>
>Peter
>
>---
>---
>This message is intended only for the personal and confidential use of the
>designated recipient(s) named above.  If you are not the intended recipient
of
>this message you are hereby notified that any review, dissemination,
>distribution or copying of this message is strictly prohibited.  This
>communication is for information purposes only and should not be regarded
as
>an offer to sell or as a solicitation of an offer to buy any financial
>product, an official confirmation of any transaction, or as an official
>statement of Lehman Brothers.  Email transmission cannot be guaranteed to
be
>secure or error-free.  Therefore, we do not represent that this information
is
>complete or accurate and it should not be relied upon as such.  All
>information is subject to change without notice.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



RE: Debug output

2003-11-04 Thread Yee, Richard K,,DMDCWEST
Peter,
Try setting the debug parameter for the action servlet in the web.xml file
to 0. Also, if you use Log4j, you can set the logging level of
org.apache.struts to something higher than DEBUG.

-Richard


-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 11:15 AM
To: 'Struts Users Mailing List'
Subject: RE: Debug output


Does anyone have more detail on how to adjust the logging level in struts?

Peter


-Original Message-
From: Micael [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 2:10 PM
To: Struts Users Mailing List
Subject: Re: Debug output


Look in WEB-INF/classes.

At 02:06 PM 11/3/2003, you wrote:
>How do I adjust the logging level of struts?
>
>I am getting way too many DEBUG messages..
>
>Peter
>
>---
>---
>This message is intended only for the personal and confidential use of 
>the designated recipient(s) named above.  If you are not the intended 
>recipient
of
>this message you are hereby notified that any review, dissemination, 
>distribution or copying of this message is strictly prohibited.  This 
>communication is for information purposes only and should not be 
>regarded
as
>an offer to sell or as a solicitation of an offer to buy any financial 
>product, an official confirmation of any transaction, or as an official 
>statement of Lehman Brothers.  Email transmission cannot be guaranteed 
>to
be
>secure or error-free.  Therefore, we do not represent that this 
>information
is
>complete or accurate and it should not be relied upon as such.  All 
>information is subject to change without notice.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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




--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient
of this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information
is complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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

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



Re: Debug output

2003-11-04 Thread Manish Singla
Following link may answer your problem

http://jakarta.apache.org/struts/userGuide/configuration.html#config_logging

Thanks
Manish
Norr, Peter wrote:
Does anyone have more detail on how to adjust the logging level in struts?

Peter

-Original Message-
From: Micael [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 2:10 PM
To: Struts Users Mailing List
Subject: Re: Debug output

Look in WEB-INF/classes.

At 02:06 PM 11/3/2003, you wrote:

How do I adjust the logging level of struts?

I am getting way too many DEBUG messages..

Peter

---
---
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient
of

this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded
as

an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to
be

secure or error-free.  Therefore, we do not represent that this information
is

complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Q: How to see Controller 'debug' output?

2004-03-12 Thread bOOyah
Is there a way for me to see what the controller/processor is doing?  I 
added this line to my struts-config.xml but I don't see any 'debug' 
output on stdout or stderr:



I'm running on Tomcat 4.

I'm trying to figure out why a forward doesn't forward to the JSP it's 
supposed to.

Thanks.
--
bOOyah
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to see Controller 'debug' output?

2004-03-12 Thread Niall Pemberton
I don't think setting debug actually does anything. Struts uses Commons
logging which is a "bridge" with various logging implementations (I use
log4j).

You need to configure the logging implementation to see the output you want.

Niall

- Original Message - 
From: "bOOyah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 12, 2004 2:07 PM
Subject: Q: How to see Controller 'debug' output?


> Is there a way for me to see what the controller/processor is doing?  I
> added this line to my struts-config.xml but I don't see any 'debug'
> output on stdout or stderr:
>
>  processorClass="org.apache.struts.action.RequestProcessor"/>
>
> I'm running on Tomcat 4.
>
> I'm trying to figure out why a forward doesn't forward to the JSP it's
> supposed to.
>
> Thanks.
> -- 
> bOOyah
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Struts Validator Debug output? What is it doing?

2003-01-28 Thread PILGRIM, Peter, FM
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!

I am trying to find out if it is validating on a nested field property
as integer and a date string.

--
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:   
For additional commands, e-mail: 




Re: Struts Validator Debug output? What is it doing?

2003-01-28 Thread Evan Schnell
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

Regards,
Evan.
--

Evan Schnell, Technical Lead
nVISIA, Twin Cities  "Digital Architecture and Construction"
7701 France Ave. S, Edina, MN 55435
Voice: 952.837.2577 -- Fax: 952.837.2578 -- Mobile: 612.232.5972




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: Struts Validator Debug output? What is it doing?

2003-01-28 Thread 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?

My problem is that Validator Plug-in loads and read the XML files
correctly. It just not does not do any validation at all. 
I looked at the validator.xml file and it looks right to me.
I looked hard at my form name and nested property names, but
I can't see the bug.

I ran the JDeveloper Debugger through my ValidatorForm and traced the
"validate(...)" call into the `Validator.init()' and 
`Validator.validate()' but an empty ActionErrors collection always 
comes back.

So I know it is not dreaded classloader issues again.

--
Peter Pilgrim,
Struts/J2EE Consultant, RBoS FM, Risk IT
Tel: +44 (0)207-375-4923



--
To unsubscribe, e-mail:

For additional commands, e-mail:




  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:   
For additional commands, e-mail: 




RE: Struts Validator Debug output? What is it doing?

2003-01-28 Thread PILGRIM, Peter, FM
> -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.



http://jakarta.apache.org/log4j/";>



















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:   
For additional commands, e-mail: 




RE: Struts Validator Debug output? What is it doing?

2003-01-28 Thread PILGRIM, Peter, FM
Is there anyone out there who is an expert on Struts validator?
--
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:   
For additional commands, e-mail: 




Re: Struts Validator Debug output? What is it doing?

2003-01-28 Thread Evan Schnell
PILGRIM, Peter, FM wrote:


   

Cut the rubbish. 


Do you see your "forms" load from validator.xml on startup?

You should see something like:


15633   [main] DEBUG -   New match='form-validation/formset/form'
15643   [main] DEBUG -   Fire begin() for 
ObjectCreateRule[className=org.apache.commons.validator.Form, 
attributeName=className]
15643   [main] DEBUG - 
[ObjectCreateRule]{form-validation/formset/form}New 
org.apache.commons.validator.Form
15643   [main] DEBUG -   Fire begin() for SetPropertiesRule[]
15643   [main] DEBUG - [SetPropertiesRule]{form-validation/formset/form} 
Setting property 'name' to 'addToCartForm'
15643   [main] DEBUG - [SetPropertiesRule]{form-validation/formset/form} 
Set org.apache.commons.validator.Form properties
15643   [main] DEBUG - BeanUtils.populate(Form: null
, {name=addToCartForm})
15653   [main] DEBUG -   setProperty(Form: null

--and/or---

  Form: productDetailForm
   Field:
   key= productKey
   property=productKey
   

Finally, have you done the major steps in your code:

   1. Make your form implement VaildatorForm or one of its ilk.
   2. Either delete the "validate" method from the form class or make 
sure it calls super.validate().
   3. Make sure the name of your form and its fields in your module 
configuration (struts-config.xml) match the name of the form in 
validation.xml.  
  
I have not done a lot with nested properties but David Winterfeldt's 
site (http://home.earthlink.net/~dwinterfeldt/index.html) claims they 
work with the validator.

Regards, Evan.


--
Evan Schnell, Technical Lead
nVISIA, Twin Cities  "Digital Architecture and Construction"
7701 France Ave. S, Edina, MN 55435
http://www.nvisia.com




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: Struts Validator Debug output? What is it doing?

2003-01-28 Thread PILGRIM, Peter, FM
> -Original Message-
> From: PILGRIM, Peter, FM 
> 
> Is there anyone out there who is an expert on Struts validator?
----
Don't bother! "Soy un Tonto mas grande de la Dia"

--
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:   
For additional commands, e-mail: 




RE: Struts Validator Debug output? What is it doing?

2003-01-28 Thread Alireza Fattahi
I have the opposite problem!
When the application starts all the validation messages are put on the
stdout. I have not configured any thing. How can I stop it? 
By the way I have put the debug and detail tags values in the web.xml to 0
but I still get INFO information in stdout!
Any help?

Thanks,

-Original Message-
From: Evan Schnell [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 6:36 PM
To: Struts Users Mailing List
Subject: Re: Struts Validator Debug output? What is it doing?

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

Regards,
Evan.
-- 

Evan Schnell, Technical Lead
nVISIA, Twin Cities  "Digital Architecture and Construction"
7701 France Ave. S, Edina, MN 55435
Voice: 952.837.2577 -- Fax: 952.837.2578 -- Mobile: 612.232.5972




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

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




RE: Struts Validator Debug output? What is it doing?

2003-01-28 Thread Craig R. McClanahan


On Wed, 29 Jan 2003, Alireza Fattahi wrote:

> Date: Wed, 29 Jan 2003 09:01:02 +0330
> From: Alireza Fattahi <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: Struts Validator Debug output? What is it doing?
>
> I have the opposite problem!
> When the application starts all the validation messages are put on the
> stdout. I have not configured any thing. How can I stop it?
> By the way I have put the debug and detail tags values in the web.xml to 0
> but I still get INFO information in stdout!
> Any help?

Struts 1.1 totally ignores the "debug" and "detail" environment
variables.

Instead, you need to learn how to configure the logging environment you
are using.  A good starting point is the commons-logging package
description:

  http://jakarta.apache.org/commons/logging/api/

followed by learning how to configure your logging implementation (Log4J
or JDK 1.4 or whatever).  I suspect you probably have the default level
for all loggers set to DEBUG or something like that.

There's also material in the most recent update to the User's Guide
about this.

Craig

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




RE: Struts Validator Debug output? What is it doing?

2003-01-29 Thread Alireza Fattahi
I have put these files in web-inf\classes folder but nothing happened:

commons-logging.properties:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JCategory
Log


log4j.properties
# A sample log4j configuration file

# Create two appenders, one called stdout and the other called rolling
log4j.rootLogger=FATAL, stdout, rolling

# Configure the stdout appender to go to the Console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender

#  Configure the stdout appender to use the PatternLayout
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

# Configure the rolling appender to be a RollingFileAppender
log4j.appender.rolling=org.apache.log4j.RollingFileAppender

# Configure the name of the logout for the rolling appender
log4j.appender.rolling.File=d:\\logs.log

# Set up the maximum size of the rolling log file
log4j.appender.rolling.MaxFileSize=1KB

# Keep one backup file of the rolling appender
log4j.appender.rolling.MaxBackupIndex=1

# Configure the Layout pattern and conversion pattern for the rolling
appender
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d{ABSOLUTE} - %p %c - %m%n


By the I could not find the user guide on the site. Should I download the
1.1b3 full?



-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 29, 2003 11:08 AM
To: Struts Users Mailing List
Subject: RE: Struts Validator Debug output? What is it doing?



On Wed, 29 Jan 2003, Alireza Fattahi wrote:

> Date: Wed, 29 Jan 2003 09:01:02 +0330
> From: Alireza Fattahi <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: Struts Validator Debug output? What is it doing?
>
> I have the opposite problem!
> When the application starts all the validation messages are put on the
> stdout. I have not configured any thing. How can I stop it?
> By the way I have put the debug and detail tags values in the web.xml to 0
> but I still get INFO information in stdout!
> Any help?

Struts 1.1 totally ignores the "debug" and "detail" environment
variables.

Instead, you need to learn how to configure the logging environment you
are using.  A good starting point is the commons-logging package
description:

  http://jakarta.apache.org/commons/logging/api/

followed by learning how to configure your logging implementation (Log4J
or JDK 1.4 or whatever).  I suspect you probably have the default level
for all loggers set to DEBUG or something like that.

There's also material in the most recent update to the User's Guide
about this.

Craig

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

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




RE: Struts Validator Debug output? What is it doing?

2003-01-29 Thread PILGRIM, Peter, FM
Hi

Back at work. Weirdo problem with Struts validator.
I found that it works with only one field inside form inside a formset.
Yesterday I did intensive debugging and strip down the XML to the basics
When I start adding extra fields then the validator no longer works.













This is the most basic XML configuration. Blast it!

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




Re: Struts Validator Debug output? What is it doing?

2003-01-29 Thread Evan Schnell
PILGRIM, Peter, FM wrote:


Hi

Back at work. Weirdo problem with Struts validator.
I found that it works with only one field inside form inside a formset.
Yesterday I did intensive debugging and strip down the XML to the basics
When I start adding extra fields then the validator no longer works.


   
   
   
   
   



	


This is the most basic XML configuration. Blast it!
 

You need to close your form tag?  

Evan.


--
Evan Schnell, Technical Lead
nVISIA, Twin Cities  "Digital Architecture and Construction"
7701 France Ave. S, Edina, MN 55435
Voice: 952.837.2577 -- Fax: 952.837.2578 -- Mobile: 612.232.5972




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



RE: Struts Validator Debug output? What is it doing?

2003-01-30 Thread Craig R. McClanahan


On Wed, 29 Jan 2003, Alireza Fattahi wrote:

> Date: Wed, 29 Jan 2003 12:52:14 +0330
> From: Alireza Fattahi <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: Struts Validator Debug output? What is it doing?
>
> I have put these files in web-inf\classes folder but nothing happened:
>

Be sure you're using "/WEB-INF", not "/web-inf" -- directory and file
names are case sensitive in webapps.

> commons-logging.properties:
> org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JCategory
> Log
>
>
> log4j.properties
> # A sample log4j configuration file
>
> # Create two appenders, one called stdout and the other called rolling
> log4j.rootLogger=FATAL, stdout, rolling
>
> # Configure the stdout appender to go to the Console
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
>
> #  Configure the stdout appender to use the PatternLayout
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
>
> # Pattern to output the caller's file name and line number.
> log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
>
> # Configure the rolling appender to be a RollingFileAppender
> log4j.appender.rolling=org.apache.log4j.RollingFileAppender
>
> # Configure the name of the logout for the rolling appender
> log4j.appender.rolling.File=d:\\logs.log
>
> # Set up the maximum size of the rolling log file
> log4j.appender.rolling.MaxFileSize=1KB
>
> # Keep one backup file of the rolling appender
> log4j.appender.rolling.MaxBackupIndex=1
>
> # Configure the Layout pattern and conversion pattern for the rolling
> appender
> log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
> log4j.appender.rolling.layout.ConversionPattern=%d{ABSOLUTE} - %p %c - %m%n
>
>
> By the I could not find the user guide on the site. Should I download the
> 1.1b3 full?
>

  http://jakarta.apache.org/struts/userGuide/

It is also included in the struts-documentation.war file of the full
binary release.

Craig

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