File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "init-param in web.xml" Watch "init-param in web.xml" New topic
Author

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.

Code:

<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>

Thanks in advance,
Josweth Reddy
SCJP1.4
:roll:
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: http://aspose.com/file-tools
 
subject: init-param in web.xml