• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

init-param in web.xml

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic