Servlet in a .jar file? AJAX access?

2006-10-14 Thread Jon Yeargers
Is it possible to put a servlet in a .jar file and be able to access it via AJAX? I have some support servlets that I want to share via a common library. To this point Ive only been putting session beans in there. Its easy to point to those using 'jsp:usebean' tags and entries in 'web.xml'.

web.xml vs context.xml - diff?

2006-09-12 Thread Jon Yeargers
(tomcat 5.x) Why are 'context.xml' and 'web.xml' bits stored in different files? What is the difference in their scope? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For

filter or valve to trap successful login?

2006-09-11 Thread Jon Yeargers
Im working with a JNDI realm to control access to a site. I need to be able to 'trap' a successful login to any one of the pages in the site so that I can create a session bean with login information. Is it possible to tie a filter or valve to the login process and get the information *before*

Tomcat: form authentication - creating a login bean

2006-09-08 Thread Jon Yeargers
I have a site that uses Tomcat's form based authentication. It reads from a MySQL db using a 'DataSourceRealm' defined in the context.xml file. All well and good. What Im hoping to achieve is creation of a session bean with info about the logged in account when a valid login is sent. Is there

SHA encrypting passwords for realm

2006-09-08 Thread Jon Yeargers
Im running my app using a 'DataSourceRealm' (MySQL) wherein I have encrypted the stored passwords using SHA. I added the 'digest=SHA' to the realm definition. The logins were working when I didn't encrypt the passwords. Now that they are encrypted I can't login anymore. Does the MySQL

Firefox / cookies / sessions - tomcat problem

2006-08-18 Thread Jon Yeargers
Issue: Im running into problems with a tomcat based application that uses the JNDI connection pooling mechanism that ships with tomcat. It appears that my session bits are being kept 'alive' by any running instances of firefox even after the browser running my app is closed. Situation: I have