Share this page 

Nicely display WEB.XML informationsTag(s): Servlet/JSP XML Jaguar/EAServer


A web.xml file contains informations about a web application hosted by a application server. While it's possible to consult the data using a regular text editor, it maybe easier to use a special stylesheet to nicely format the data for easy browsing.

I found a nice generic stylesheet on the Web and adapted it a little bit for that purpose. Here the modified xsl file, the css file, a sample web.xml.

See the sample output if your browser supports XML/XSL transformation.

Attach the xsl to the xml by adding this line to the xml file :

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="tree-view.xsl"?>
...
or do the transformation in Java, for a hint see this How-to.
mail_outline
Send comment, question or suggestion to howto@rgagnon.com