Welcome to WebmasterWorld Guest from 54.162.205.151

Forum Moderators: incrediBILL

Message Too Old, No Replies

docBase in server.xml of tomcat server

     

manjumurthy

6:05 am on Jun 28, 2001 (gmt 0)

Inactive Member
Account Expired

 
 


i want to access the path set in the docBase of the file server.xml in tomcat server through a servlet. How can i do it, please help me?

Xoc

6:33 pm on June 28, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 18, 2001
posts:1437
votes: 0


An XML file is text. You can either parse the text yourself using something like a perl script, or you can go the slightly more complicated route of getting an XML parser and having a script talk to that. It's a useful skill to learn, though.

If you want to go the latter route, if you send me the XML file, I'll send you back the XPATH expression necessary to find the docBase item. You will still need to find an XML parser and get it to work. I have no experience with tomcat.