RE: Apache2.x and Tomcat5.0.x Session' data

2005-08-31 Thread Caldarale, Charles R
 From: Yassine ELassad [mailto:[EMAIL PROTECTED] 
 Subject: Apache2.x and Tomcat5.0.x  Session' data
 
 Inside that directory ther is a link to one of my servlets
 what i want is to pass the user's data already collected 
 after the log in against AAOM (username, etc ...) to that servlet

You might find it simpler just to migrate to Tomcat 5.5 and eliminate
httpd - check Peter Lin's report on performance testing at:
http://jakarta.apache.org/tomcat/articles/benchmark_summary.pdf

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Apache2.x and Tomcat5.0.x Session' data

2005-08-31 Thread Guernsey, Byron \(GE Consumer Industrial\)

Have you tried calling getRemoteUser() on the HttpRequest object?  If the 
authentication for MySQL is done with basic auth style authentication, the the 
user should be set and passed to tomcat.

You can use that to query the rest of the data from the database.  If you want 
to pass more data in, you will need to write a CGI on the web server to make a 
URL containing the data and redirect to it. You may also be able to set it in a 
COOKIE and let the web browser pass it back to the app server.

Byron

 

-Original Message-
From: Yassine ELassad [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 31, 2005 7:13 AM
To: tomcat-user@jakarta.apache.org
Subject: Apache2.x and Tomcat5.0.x  Session' data

hi everyone,

i was just wondering how i can pass user's session data from Apache to Tomcat 
and visversa:

an example:

Im restricting access to a directory secret/* with Apache Authentication on 
Mysql (AAOM)

Inside that directory ther is a link to one of my servlets what i want is to 
pass the user's data already collected after the log in against AAOM (username, 
etc ...) to that servlet

ill be glade for any ideas how i can perform this ps im using mod_jk which mean 
im using tomcat only as a servlet container behind apache since the most data 
iam serving is a static data

Thanks in Advance
Sincerly
Yassine ELassad
__
Verpassen Sie keine eBay-Auktion und bieten Sie bequem und schnell über das 
Telefon mit http://www.telefonbieten.de

Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag eMail, FAX, SMS, 
VoiceMail mit http://www.directbox.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]