Find login information from tomcat security

2005-04-18 Thread Gia Thornton
Hi, I am using Form-based tomcat security. I use a servlet to find login information such as the principal name, all the role names for this principal. I can use request.getUserPrincipal() from javax.servlet.http.HttpServletRequest. Is there anyway I can use GenericPrincipal class from

Write file to browser tomcat error

2005-03-02 Thread Gia Thornton
Hi, I am using the code below in a jsp to write a jar file to the browser so that user can download it. However, after the user hit download to save the file, the tomcat server display an error caused by flushing the buffer. Does anyone know why it happens? Thank you for your help

Re: Basic Authentication Window

2005-01-28 Thread Gia Thornton
the authentication with every request. I does not care at all about your session. I think your simplest solution is to switch to form-based authentication. Larry On Thu, 27 Jan 2005 19:58:16 -0800 (PST), Gia Thornton wrote: Hi, I am using Tomcat Container managed security: Basic Authentication by adding

Basic Authentication Window

2005-01-27 Thread Gia Thornton
Hi, I am using Tomcat Container managed security: Basic Authentication by adding the following to web.xml. security-constraint web-resource-collection web-resource-nameThe Entire Web Application/web-resource-name url-pattern/XMLServlet/url-pattern

How to make tomcat 5 not persist session?

2005-01-11 Thread Gia Thornton
Hi there, I am developing jsp to run in tomcat 5.0.18. I need to store a java class object in session. The class is not serialized. I got error message: SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted;

Re: How to make tomcat 5 not persist session?

2005-01-11 Thread Gia Thornton
Hi, Sorry I have found the answer. I need to add Manager className=org.apache.catalina.session.StandardManager pathname=/ to application context. regards, Gia Thornton [EMAIL PROTECTED] wrote: Hi there, I am developing jsp to run in tomcat 5.0.18. I need to store a java class object