You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chirag <cs...@yahoo.co.in> on 2005/01/06 06:07:19 UTC

After JDBCRealm Authentication some jsp/servlet to be executed

Software
JDK1.5
jakarta-tomcat-5.5.2

Requirement
After the user Logins in the Server through JDBCRealm Authentication I want to store the user Details in the session

I know there is something called request.getUserPrincipal().getName()
But i need to store the whole companydetails in the Session
I mean the other details

so for this I have to write the code in all the jsp files
Is there any better way out


Thanks in advance

CSJakharia
 


 Subscribe to bermudaEmail:  [input]  [input]  Browse Archives at groups-beta.google.com 


		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - 250MB free storage. Do more. Manage less.

Re: After JDBCRealm Authentication some jsp/servlet to be executed

Posted by Chirag <cs...@yahoo.co.in>.
Trying to implement a javax.servlet.Filter

It has a method which is 

public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws java.io.IOException, javax.servlet.ServletException

But I want to access the session Object to add the other details of the companyObject

javax.servlet.ServletResponse does not has access to sessions and so could not do that

I think Filter is created with modifying the request and response objects before going towards actual JSP pages and not to modify the Session variables

Does anyone has solution to my problem

Thanks in advance

CSJakharia

http://groups-beta.google.com/group/bermuda



 Subscribe to bermudaEmail:  [input]  [input]  Browse Archives at groups-beta.google.com 


		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - You care about security. So do we.

Re: After JDBCRealm Authentication some jsp/servlet to be executed

Posted by Chirag <cs...@yahoo.co.in>.
Thanks for Pointing me in right direction
 
Is there any tutorial for implementing ServletFilter on Tomcat Version 5.5
 
As I could not find any commented entry in the web.xml File for ServletFilter
 
As I have read that the xmls are changed a lot 
 
Thanks in advance
 
CSJakharia
 


QM <qm...@brandxdev.net> wrote:On Wed, Jan 05, 2005 at 09:07:19PM -0800, Chirag wrote:
: After the user Logins in the Server through JDBCRealm Authentication I want to store the user Details in the session
: 
: I know there is something called request.getUserPrincipal().getName()
: But i need to store the whole companydetails in the Session
: I mean the other details

? What "other details?" What are "companydetails"?

: so for this I have to write the code in all the jsp files
: Is there any better way out

ServletFilter?
-QM

-- 

software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com




 Subscribe to bermudaEmail:  [input]  [input]  Browse Archives at groups-beta.google.com 


		
---------------------------------
Do you Yahoo!?
 The all-new My Yahoo! � What will yours do?

Re: After JDBCRealm Authentication some jsp/servlet to be executed

Posted by QM <qm...@brandxdev.net>.
On Wed, Jan 05, 2005 at 09:07:19PM -0800, Chirag wrote:
: After the user Logins in the Server through JDBCRealm Authentication I want to store the user Details in the session
: 
: I know there is something called request.getUserPrincipal().getName()
: But i need to store the whole companydetails in the Session
: I mean the other details

? What "other details?"  What are "companydetails"?

: so for this I have to write the code in all the jsp files
: Is there any better way out

ServletFilter?
-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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