• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

init-param in web.xml

 
Josweth Reddy
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 948
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic