Need one Struts app, but must have multiple URLs.
 
Thus
http://www.jv.com/company1
http://www.jv.com/company2
 
actually start the same Struts app, say
 
http://www.jv.com/myApp
 
but must "pass" something into the Struts app so that it knows who, or 
rather, which URL invoked it.
 
Thoughts:

Write a servlet, handles multiple URLs, init-param set to a unique value 
for each servlet. 
Add a header into the http response object before issuing the redirect.
Redirect to the Struts app.

Where in a Struts app can I pick up the header (or other)?

The Struts app, in web.xml, has a welcome file of logon.jsp. Could I get 
the header here? Doesn't seem to work. 

Any ideas? 
 
John 





NOTICE:  This communication may contain confidential, proprietary or 
legally privileged information. It is intended only for the person(s) to 
whom it is addressed.  If you are not an intended recipient, you may not 
use, read, retransmit, disseminate or take any action in reliance upon it. 
Please notify the sender that you have received it in error and 
immediately delete the entire communication, including any attachments. 
Towers Perrin does not encrypt and cannot ensure the confidentiality or 
integrity of external e-mail communications and, therefore, cannot be 
responsible for any unauthorized access, disclosure, use or tampering that 
may occur during transmission.  This communication is not intended to 
create or modify any obligation, contract or warranty of Towers Perrin, 
unless the firm clearly expresses such an intent.

Reply via email to