This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How to get all the project path? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to get all the project path?" Watch "How to get all the project path?" New topic

How to get all the project path?

Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
Hello to everyone,

Tomcat Manager contains all the project links. How can I get all the project paths with project name.

for e.g

application name --> student management
Path name --> c:/student/webapp

How can I get all these information. Please advise.

Thanking You.

Thank You<br />Edward
Pavel Cherkashin
Ranch Hand

Joined: Mar 04, 2005
Posts: 47
Three ways:
1. You can access via JMX then retrieve needed info.
2. Use Tomcat Manager list command via http
it will return plaintext response, which look like this:

Response can be parsed using regular expressions if needed.

3. write screen scrapper for Tomcat Manager's web GUI (use httpclient-it represents the dom tree of the html documet - easy to retrieve the information).
[ February 20, 2008: Message edited by: Pavel Cherkashin ]

Pavel Cherkashin - <br />SCJP, SCWCD, SCDJWS, SCBCD, SCEA, ...<br />
Don't get me started about those stupid light bulbs.
subject: How to get all the project path?
Similar Threads
Arraylist and for enchanced loop question
How to modify the XML Document?
Image Display problem
read the XML file
Primary key / Forign Key