Error Page problems

2007-09-07 Thread ryoung5367

I am trying to capture certain errors and display a friendly screen.

I put the following in my web.xml

 
404 
/error.html 
 

I noticed that I no longer get the standard Tomcat message on 404's, but I
get a 404 error in the browser.  I thought this was because maybe it could
not find the error.html, but no matter where I put it I get the same
results.

Where would it normally look for that file?  I have searched the forum and
google, but can not find my answer.

Any help would be appreciated.

Thanks in advance

Rob
-- 
View this message in context: 
http://www.nabble.com/Error-Page-problems-tf4403245.html#a12561526
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Question about Session MGMT

2007-09-07 Thread ryoung5367

Thanks very, much to all who replied.  That works now.

Rob


Caldarale, Charles R wrote:
> 
>> From: ryoung5367 [mailto:[EMAIL PROTECTED] 
>> Subject: Re: Question about Session MGMT
>> 
>> I was just looking at how to turn off cookies in the 
>> context.xml file it added this:
>> 
>> 
>> cookie
>> false
>>  
> 
> That's incorrect.  The cookies attribute (it's not an XML element)
> should be specified like this:
> 
> ...
> 
> 
>  - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Question-about-Session-MGMT-tf4394390.html#a12556973
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Question about Session MGMT

2007-09-07 Thread ryoung5367

I was just looking at how to turn off cookies in the context.xml file it
added this:


cookie
false
 

Yet I am not seeing the URL rewritting... I was reading the tomcat doco,  am
I missing something.

(Please pardon these newbie questions)


Christopher Schultz-2 wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Joshua and Rob,
> 
> Joshua Fielek wrote:
>> That is because you have one session per browser session.
> 
> Or, more precisely, your application is using a cookie to maintain
> state, and since the cookies used for both logins have the same
> hostname, path, and name, the second cookie overwrites the first and you
> are left with a single login in two different windows/tabs.
> 
>> This is why you can log in to an email webapp, navigate away, and if you
>> return within the timeout for the email session, you are treated as
>> though you never left.
>> 
>> YMMV, because this may not be true of _all_ webapps :-)
> 
> Right. One way to allow multiple logins in separate tabs is to disable
> the use of cookies on the server (or even your web browser). If you've
> been writing your web pages properly, all of your links should have the
> session id encoded in them when cookies are not being used, and sessions
> will be maintained by using that information instead of cookies.
> 
> In this case, you can login as many times as you want in separate
> windows/tabs/processes/etc. and you'll get a separate session in each of
> them.
> 
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFG4HfL9CaO5/Lv0PARAm+AAJ9w1Gn3P/uXfFFgXFz3ggQxNjWOewCbBYT+
> YiJINdhnJXJ66QdH95iyRlw=
> =FKj2
> -END PGP SIGNATURE-
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Question-about-Session-MGMT-tf4394390.html#a12555245
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Question about Session MGMT

2007-09-06 Thread ryoung5367

I was searching the archives, but could not find what I thought I needed??

The problem I have is that when I go to my webapp (IE/Firefox) and login as
say an admin and then open another tab and login as just a user.  The
original admin login will fail if I try to do any administrative functions.

I am sure that I am messing up something with the Cookie used to maintain
session state, but I am not sure how to avoid this when using the same
browser?

Any help would be appreciated.  Thanks in advance
Rob
-- 
View this message in context: 
http://www.nabble.com/Question-about-Session-MGMT-tf4394390.html#a12530425
Sent from the Tomcat - User mailing list archive at Nabble.com.


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