André Warnier wrote: > Madhav wrote: >> Hi André, >> >> Thanks for the reply, but the link is about configuring Tomcat which I >> know. >> What I'm looking for is how to get these information inside servlet, >> i.e. in >> java code. Please let me know that or point me to any resource if you >> know >> that. >> > I don't really know. > But I can imagine that, from within your servlet, you might be able to > "move back up the hierarchy" starting from e.g. the ServletRequest or > ServletContext, back up to the Host, the Engine, to the Connector, and > then to its properties, no ? > Or maybe that is not possible for security reasons ?
You can do that. You'll probably need to make your app privileged to do it (I haven't tested it). Take a look at how the manager app does it for the status page. Mark --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]