RE: To find user name

2005-04-20 Thread Darren Govoni
request.getRemoteUser(); >- --- Original Message --- - >From: "Ramu, Vinod" <[EMAIL PROTECTED]> >To: >Sent: Wed, 20 Apr 2005 10:16:36 > >Hi All, > >Could any one of you please let me know how to get >the username? > >For example, let's assume that I use BASIC >authentication to au

Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-17 Thread Darren Govoni
I had similar problems, and was forced to revert back to Tomcat 5.0.x. Are you using HTTP or Form-based authentication to get the user credentials? On Tue, 2005-03-08 at 11:57 -0700, Richard Mixon (qwest) wrote: > Has anything changed with the way that JDBCReal handles connection > timeouts in T

Re: help on 5.5.7

2005-03-06 Thread Darren Govoni
On Sun, 2005-03-06 at 20:47 -0500, Darren Govoni wrote: > Thanks Chuck. This approach works better, although I would think > regardless of the auth form, the redirect to error > page would be independent. > > Any idea how to do FORM based auth from a Java client? > > I was

Re: help on 5.5.7

2005-03-06 Thread Darren Govoni
Thanks Chuck. This approach works better, although I would think regardless of the auth form, the redirect to error page would be independent. Any idea how to do FORM based auth from a Java client? I was using Basic like this: On Sun, 2005-03-06 at 17:04 -0800, Chuck Williams wrote: > Dar

Re: help on 5.5.7

2005-03-06 Thread Darren Govoni
s not right either! I only want it to forward to on a code 401 _when the login attempt fails_ and it should prompt the user for that, which it doesn't. :( Darren On Sun, 2005-03-06 at 17:10 -0500, Darren Govoni wrote: > Thanks for the response. > > I tried many variations. Nothing wo

Re: help on 5.5.7

2005-03-06 Thread Darren Govoni
in.jsp On Sun, 2005-03-06 at 09:36 -0800, Chuck Williams wrote: > Darren Govoni writes (3/6/2005 7:16 AM): > > >Hi, > > I tried adding. > > > > > > 401 > > /error.jsp?type=401 > > > > > >to my web.xml page (it was in th

Re: setting download file name

2005-03-06 Thread Darren Govoni
Try this. I used it for JNLP, but it should work for zip. Just replace .jnlp with .zip String fileName = request.getServletPath(); fileName = fileName.substring(fileName.lastIndexOf("/") + 1); fileName = fileName.substring(0, fileName.indexOf(".")) + ".jnlp"; response.addHeader("Content-Dispositio

help on 5.5.7

2005-03-06 Thread Darren Govoni
Hi, I tried adding. 401 /error.jsp?type=401 to my web.xml page (it was in the proper location, etc.) but my server still produces the default error page. When I tried on my earlier 5.0.25 tomcat, it wouldn't even bring up my resources, which was weird. Anyway, I tried various codes and

Re: load-on-startup servlet needs access

2005-03-06 Thread Darren Govoni
nit() - you are out of luck. > > If you need to load resources (plain old files) - you can use > ServletContext.getResourceAsStream() > > -Tim > > Darren Govoni wrote: > > Hi, > > I wasn't able to do a full text search of archive message bodies on > >

load-on-startup servlet needs access

2005-03-06 Thread Darren Govoni
Hi, I wasn't able to do a full text search of archive message bodies on this, so pardons if its old problem. I have a servlet that I designate to load-on-startup, but that servlet calls a class that needs to access the tomcat server to get resources. It just hangs because the server is not ready