Re: Servlet in a .jar file? AJAX access?

2006-10-14 Thread Frank W. Zammetti
Yes, certainly you can put a servlet in a JAR... after all, Struts is based on a servlet, and you generally just drop the Struts JAR into your webapp... accessing a servlet via AJAX is, in simplest terms, just a plain old HTTP request like any non-AJAX request, so yes, you can do that too. If

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 'do something similar to a servlet such that I

Re: custom Form authenticator

2006-10-14 Thread Bill Barker
"Pid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Am thinking about implementing a custom Form authenticator, does anyone > have any tips or links they can recommend before i get started? > > Particularly want to know if I can use it on one webapp, not force all > on the server t

Re: custom Form authenticator

2006-10-14 Thread Christopher Schultz
Pid, > Am thinking about implementing a custom Form authenticator, does anyone > have any tips or links they can recommend before i get started? > > Particularly want to know if I can use it on one webapp, not force all > on the server to use it too. http://securityfilter.sourceforge.net You ca

custom Form authenticator

2006-10-14 Thread Pid
Am thinking about implementing a custom Form authenticator, does anyone have any tips or links they can recommend before i get started? Particularly want to know if I can use it on one webapp, not force all on the server to use it too. cheers, pid -

Re: Writing a text file back to browser from a servlet

2006-10-14 Thread David Kerber
Thanks, Tim - I'll give that a try later today. Dave Tim Lucia wrote: You could stream it directly to the user, if practical (why write to a temp file only to stream that back to the user?) In order to be recognized by the browser as text and an attachment, you should: response.setContentTy

RE: Writing a text file back to browser from a servlet

2006-10-14 Thread Tim Lucia
You could stream it directly to the user, if practical (why write to a temp file only to stream that back to the user?) In order to be recognized by the browser as text and an attachment, you should: response.setContentType("text/plain; charset=UTF-8"); response.setHeader("Content-disposition", "

Re: HTTP redirect problem - fully qualified host name - tomcat 5.5.9 / mod-jk / Load balancing

2006-10-14 Thread Rainer Jung
Hi, if apache has the right idea, which hostname has been adressed and you use mod_jk, usually you get the right redirects. If apache doesn't know, because of ssl offloading or load balancers hiding the correct information, you can set attributes on the tomcat side in server.xml to the connector e