If I'm not mistaken its an environment variable which can be obtained via
java.lang.System.getEnv("HTTP_HOST");
Take a look at
http://java.sun.com/j2se/1.5.0/docs/api/
Martin-
----- Original Message -----
From: "Dhaval Patel" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, December 28, 2005 3:11 PM
Subject: Getting list of all deployed web applications
> Hi,
>
> Is there a way by which you can list of all web applications deployed? I
> know that if you go to
> manager webapp, you will see list of deployed applications. I want to achieve
> the same
> functionality but using jsp pages.
>
> I tried to understand the source of manager webapp but I could not find one
> thing. How do you
> get catalina.host object? Once I get the host, I can use the list(...) method
> of
> ManagerServlet.java into jsp page and thus can able to retrieve the list of
> deployed webapps
> (hopefully !! Correct me if I am wrong or suggest me something better). This
> is not for any
> production ready environment but for my own learning purpose.
>
> Thanks for your help.
>
> Regards,
> D
>
>
>
>
> __________________________________
> Yahoo! for Good - Make a difference this year.
> http://brand.yahoo.com/cybergivingweek2005/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>