Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 1103 invoked from network); 6 Feb 2007 04:37:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2007 04:37:24 -0000 Received: (qmail 20516 invoked by uid 500); 6 Feb 2007 04:37:24 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 20474 invoked by uid 500); 6 Feb 2007 04:37:24 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 20463 invoked by uid 99); 6 Feb 2007 04:37:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2007 20:37:24 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of phanibalaji.madgula@gmail.com designates 64.233.162.234 as permitted sender) Received: from [64.233.162.234] (HELO nz-out-0506.google.com) (64.233.162.234) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2007 20:37:15 -0800 Received: by nz-out-0506.google.com with SMTP id j2so1910669nzf for ; Mon, 05 Feb 2007 20:36:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=pM0kxAX0KC8h1HSzG2IlKLzkUYVBef82bFZa5Ozs/NQ5u5pEiwWRHbVkFe21FxK7fqnb0BcoXwREBK3A/f0/yDQbrYBf0oZv7Cv/SoD2ufae/IfJZKi/g7Ulo05mIk1sK+UiewoXzUuKZtmBa6qawmcNeDOcjNvAl7KXwj3MDiI= Received: by 10.65.200.14 with SMTP id c14mr12067454qbq.1170736614251; Mon, 05 Feb 2007 20:36:54 -0800 (PST) Received: by 10.65.153.5 with HTTP; Mon, 5 Feb 2007 20:36:54 -0800 (PST) Message-ID: <83e2fc4d0702052036k257835afx763eac6ecb9d9ccb@mail.gmail.com> Date: Tue, 6 Feb 2007 10:06:54 +0530 From: "Phani Madgula" To: dev@geronimo.apache.org Subject: Re: Can we create a filter for j_security_check service in Geronimo Tomcat? In-Reply-To: <22d56c4d0702012319r63143180m3eead7610bf27ca1@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_967_23171873.1170736614208" References: <83e2fc4d0701310142l2f9663f2y17175734e2e36d75@mail.gmail.com> <22d56c4d0702012319r63143180m3eead7610bf27ca1@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_967_23171873.1170736614208 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Paul, To put the issue correctly, I need to access user credentials in my servlet while using Container managed authentication say FORM login. This is required because, I need them for some loging/establishing DB connections etc. Ofcourse, If we use programatic authentication, it can't be done easily. In my first mail, I was trying to use a filter for j_security_check so that, I can hook some code there to perform the tasks. However, I was not able to do so. I will try your option. Thx Phani On 2/2/07, Vamsavardhana Reddy wrote: > > Phani, > > What kind of logging are you looking at? > > Vamsi > > On 1/31/07, Phani Madgula wrote: > > > > Hi > > I have a web application that uses FORM login. I would like to have a > > filter to be declared for j_security_check service so that I can perform > > some loging tasks. Is it allowed in Geronimo/Tomcat? > > > > I tried with the below tags but filter will not be called..! Any help on > > this? > > > > > > Page Request Timer > > TimeTrackFilter > > > > < filter-mapping> > > Page Request Timer > > j_security_check > > > > > > Regards > > Phani > > > > ------=_Part_967_23171873.1170736614208 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Paul,
 
To put the issue correctly, I need to access user credentials in my servlet while using Container managed authentication say FORM login. This is required because, I need them for some loging/establishing DB connections etc. Ofcourse, If we use programatic authentication, it can't be done easily.
 
In my first mail, I was trying to use a filter for j_security_check so that, I can hook some code there to perform the tasks. However, I was not able to do so.
 
I will try your option.

Thx
Phani
 
On 2/2/07, Vamsavardhana Reddy <c1vamsi1c@gmail.com> wrote:
Phani,

What kind of logging are you looking at?

Vamsi

On 1/31/07, Phani Madgula < phanibalaji.madgula@gmail.com> wrote:
Hi
I have a web application that uses FORM login. I would like to have a filter to be declared for j_security_check service so that I can perform some loging tasks. Is it allowed in Geronimo/Tomcat?
 
I tried with the below tags but filter will not be called..! Any help on this?
 
<filter>
<filter-name >Page Request Timer</filter-name>
<filter-class>TimeTrackFilter</ filter-class>
</
filter>
< filter-mapping>
<filter-name>Page Request Timer </filter-name>
<url-pattern >j_security_check</url-pattern>
</
filter-mapping>

Regards
Phani



------=_Part_967_23171873.1170736614208--