You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Trond Hersløv <tr...@gotogate.no> on 2004/06/21 23:46:59 UTC

request process flow and user profiling

Hi,
I need to mainten a profile database with login, password, telephone numbers
and so on. I think I need to know how tomcat is handeling the request flow.
My goal is to achive the following (if there are better ways to it, please
let me know).
 
Profile profile = request.getSessio().getProfile();
if( ! profile.loggedIn){
  "the user is not logged in..."
else
telephoneNumber=profile.getNumber();
}
 
 
I suppose there is a kind of pipeline of servlets that one after another is
processing the request object untill it finally is handeled by the end
servlet (e.g test.jsp)
If it doesn't allready exists, I would like to extend the session object
with to members:
 
short:
public class mySession extends Session{
    Boolean loggedIn;    
    Profile    profile;
}
 
and put a class into the pipeline which, dependend on wether or not the user
is logged in, sets loggedIn=true and profile="som object containg profile
information";
Does this allready exist as a functionallity in tomcat? I know other
servlet-containers (Dynamo from ATG) has this kind of profile handeling.
 
Where can I find documentation on how tomcat is processing the request flow?
 
Thanks in advance
trond
 
 


**********************************************************************
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************


Re: request process flow and user profiling

Posted by Filip Hanik - Dev <de...@hanik.com>.
you have tons of options,
Servlet filters (standard servlet API) lets you process requests.
Using a MVC framework, such as struts, you can build your own controllers, hence do a bunch of stuff there
Use Tomcat's pipeline by building valves

Filip

----- Original Message -----
From: "Trond Hersløv" <tr...@gotogate.no>
To: <to...@jakarta.apache.org>
Sent: Monday, June 21, 2004 4:46 PM
Subject: request process flow and user profiling


> Hi,
> I need to mainten a profile database with login, password, telephone numbers
> and so on. I think I need to know how tomcat is handeling the request flow.
> My goal is to achive the following (if there are better ways to it, please
> let me know).
>
> Profile profile = request.getSessio().getProfile();
> if( ! profile.loggedIn){
>   "the user is not logged in..."
> else
> telephoneNumber=profile.getNumber();
> }
>
>
> I suppose there is a kind of pipeline of servlets that one after another is
> processing the request object untill it finally is handeled by the end
> servlet (e.g test.jsp)
> If it doesn't allready exists, I would like to extend the session object
> with to members:
>
> short:
> public class mySession extends Session{
>     Boolean loggedIn;
>     Profile    profile;
> }
>
> and put a class into the pipeline which, dependend on wether or not the user
> is logged in, sets loggedIn=true and profile="som object containg profile
> information";
> Does this allready exist as a functionallity in tomcat? I know other
> servlet-containers (Dynamo from ATG) has this kind of profile handeling.
>
> Where can I find documentation on how tomcat is processing the request flow?
>
> Thanks in advance
> trond
>
>
>
>
> **********************************************************************
> This email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> **********************************************************************
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org