tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Cronin" <mike.cro...@fax.com>
Subject RE: Different sessions between JSP and Servlets...
Date Thu, 06 Sep 2007 02:30:18 GMT
I started from a clean install and continue to encounter the issue where my
JSP pages are not exposed to the session variables being set from within my
servlets. I believe that my <Host> element is set up correctly as I can get
to all of my site content as desired.

Have you experienced this? Your input is most appreciated.

Best regards,

Mike
 
Fax.com
"The New Way To Fax!"
www.fax.com
 
Confidential: This electronic message and all contents contain information
from Fax.com, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee(s) only.  If you are not an addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited.  If you
have received this electronic message in error, please notify the sender by
reply e-mail and destroy the original message and all copies. Thank you.

-----Original Message-----
From: Mike Cronin [mailto:mike.cronin@fax.com] 
Sent: Wednesday, September 05, 2007 4:05 PM
To: users@tomcat.apache.org
Subject: Different sessions between JSP and Servlets...

Okay, I have the following structure.

 

$CATLINA-HOME\webapps\a_subfolder\my_root\

 

Within my_root there are a number of subfolders that contain various
applications i.e. login, admin, reports and my WEB-INF.

 

The first thing I need to make sure of is that I am using the correct
terminology. Correct me if I'm wrong, but the structure I defined is a
<Context>, correct?

 

The problem I am having is that my JSP pages are receiving a different
session than my servlets. Because all of these applications exist within a
<Context>, I'm confused as to why the sessionIDs would be different.

 

My <Host> element is defined as follows (the only Context referenced is the
default).

 

      <Host name="my_site.com" appBase="webapps\a_subfolder\my_root\">

        <Context path="" docBase="\">

          <ResourceLink name="jdbc/OracleDS" global="OracleDataSource"
type="javax.sql.DataSource"/>

        </Context>

      </Host>

 

I am obviously missing something important here, and could really use some
enlightenment (or a slap upside the head).

 

Thanks in advance!

 

Mike

 

Fax.com

"The New Way To Fax!"

 <http://www.fax.com/> www.fax.com

 

Confidential: This electronic message and all contents contain information
from Fax.com, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee(s) only.  If you are not an addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited.  If you
have received this electronic message in error, please notify the sender by
reply e-mail and destroy the original message and all copies. Thank you.

 



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message