File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes init-param in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "init-param in web.xml" Watch "init-param in web.xml" New topic

init-param in web.xml

Josweth Reddy
Ranch Hand

Joined: Nov 02, 2005
Posts: 30
Dear Ranchers,
Im new to Struts and I would like to know the purpose of "debug" init-param in web.xml.



Thanks in advance,
Josweth Reddy
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
I searched around a little and I see that this setting is deprecated. I don't know what version of Struts marked this as deprecated or what effect it currently has. My project has it set to 2, which I am sure is because that is what it was set at in a previous project.

Here is the documentation that I found:

The debugging detail level that controls how much information is logged for this servlet. Accepts values 0 (off) and from 1 (least serious) through 6 (most serious). DEPRECATED - Configure the logging detail level in your underlying logging implementation.

- Brent
I agree. Here's the link:
subject: init-param in web.xml
It's not a secret anymore!