try using HttpServletRequest.getServerName(),
.getServerPort()
[EMAIL PROTECTED] on 12/10/2001 08:54:32 AM
Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: Detecting server name and port
I have a web application which sends out email reminders to members in a
database when certian tasks are slipping- This all works great however I
would like the application to be smart enough to know which server and port
it is installed in so when generating a message it can include a link back
to the particular task. What I have currently done is include an init-param
tag with this information and it works but then it isnt server independent.
I have also explored the possibility of getting the information from
HttpServletRequest (which also works) but I'd like the timer function not
to
depend on someone actually requesting a page.
Is there any other methods to get the server name and port ?
Thanks
Steve
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>