Implement the HttpSessionListener.... -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 7:56 AM To: [EMAIL PROTECTED] Subject: RE: Setup globals per new session
Hello, You could have an index page that automatically redirects to a struts action. This action could retrieve the information you require and then decide which way to direct the user. Regards. Stephen. -----Original Message----- From: Mark Kaye [mailto:[EMAIL PROTECTED]] Sent: 29 August 2002 15:51 To: Struts Users Mailing List Subject: Setup globals per new session Hi, Please bear with me, I'm a Struts newbie :) I need to be able to detect and store some data based upon the request.getServerName() method result. i.e. When a user connects to my application (which will be listening on several different hostnames) I need to detect which host they are connecting to a store this in a session variable. How can store this data _before_ the user sees anything, i.e. before the response is created? The key is that this should occur for every new session, regardless of what actual resource was requested. I need this mechanism in order to serve up context specific (per hostname) content. Any help is much appreciated. Regards, M -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ---------------------------------------------------------------------------- --------------- Copyright material and/or confidential and/or privileged information may be contained in this e-mail and any attached documents. The material and information is intended for the use of the intended addressee only. If you are not the intended addressee, or the person responsible for delivering it to the intended addressee, you may not copy, disclose, distribute, disseminate or deliver it to anyone else or use it in any unauthorised manner or take or omit to take any action in reliance on it. To do so is prohibited and may be unlawful. The views expressed in this e-mail may not be official policy but the personal views of the originator. If you receive this e-mail in error, please advise the sender immediately by using the reply facility in your e-mail software, or contact [EMAIL PROTECTED] Please also delete this e-mail and all documents attached immediately. Many thanks for your co-operation. BMW Financial Services (GB) Limited is registered in England and Wales under company number 01288537. Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF ---------------------------------------------------------------------------- -------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>