Reuse DefaultServlet at runtime from webapp for static resources on disk.

2009-09-08 Thread Robbert-Jan Roos
something like this in a ServletFilter; doFilter(Request request, Response response) { String configDir = our.Config.get("themesdir"); File themesDir = new File(configDir); Servlet s = getDefaultServlet(themesDir); s.service(request, response); } Thanks, Robbert-Jan Roos

ServletContextAttributeListener and a cluster

2009-06-03 Thread Robbert-Jan Roos
Hi, We've been playing around with the DistributedContext, and setAttribute getAttribute works perfectly. I was wondering if it is possible to get a distributed ServletContextAttributeListener. So when we do setAttribute("foo", "bar") on cluster node1 I would like to receive a ServletContextAt

Cookies in Servlets and redirecting Servlet results to a JSP.

2006-11-23 Thread Robbert
Hello, After receiving some excellent help on my other topic, I thought I'd try here again. This problem is related to the application I am making in my other thread, but you needn't know the specifics. I'll just give you the necessary information. The webapp has to register hits and those have

Re: CSS not being used when a Servlet is involved

2006-11-23 Thread Robbert
Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Robert, > > Robbert wrote: >> Christopher Schultz-2 wrote: >>> Whether or not you use struts, I highly recommend that you avoid tricks >>> like calling a servlet

Re: CSS not being used when a Servlet is involved

2006-11-15 Thread Robbert
Apologies for the late reply. I've had some more pressing to attend to. Christopher Schultz-2 wrote: > > Robbert, > >> Christopher Schultz-2 wrote: >>> You have your process turned upside down, here. >> >> Why is the process turned upside down, exact

Re: CSS not being used when a Servlet is involved

2006-10-29 Thread Robbert
Christopher Schultz-2 wrote: > > Robbert, > >> Hm, alright. Should all else fail, is it possible to let a Servlet handle >> the CSS? > > You don't really want to do this. > > No, especially since it's not needed anymore. Christopher Schult

RE: CSS not being used when a Servlet is involved

2006-10-29 Thread Robbert
Caldarale, Charles R wrote: > >> From: Robbert [mailto:[EMAIL PROTECTED] >> Subject: RE: CSS not being used when a Servlet is involved >> >> Hm, alright. Should all else fail, is it possible to let a >> Servlet handle the CSS? > > Some servlet

RE: CSS not being used when a Servlet is involved

2006-10-28 Thread Robbert
Caldarale, Charles R wrote: > >> From: Robbert [mailto:[EMAIL PROTECTED] >> Subject: RE: CSS not being used when a Servlet is involved >> >> Combining that with what you just said, I assume that you're >> basically saying that my servlet tries to handle t

RE: CSS not being used when a Servlet is involved

2006-10-27 Thread Robbert
Caldarale, Charles R wrote: > >> From: Robbert [mailto:[EMAIL PROTECTED] >> Subject: Re: CSS not being used when a Servlet is involved >> >> I'm using a link tag. It works fine if I take out the lines >> in web.xml that define the Servlet + Servlet

RE: CSS not being used when a Servlet is involved

2006-10-27 Thread Robbert
Caldarale, Charles R wrote: > >> From: Robbert [mailto:[EMAIL PROTECTED] >> Subject: Re: CSS not being used when a Servlet is involved >> >> I'm calling the Servlet with >> > > Shouldn't the above be: > > > Isn't the leading

Re: CSS not being used when a Servlet is involved

2006-10-27 Thread Robbert
David Smith-2 wrote: > > 1. The location of servlet classes is documented in the spec. Place > them in either a directory structure that reflects the package structure > under WEB-INF/classes or in a jar file whose internal folder structure > reflects the package structure. > > Ex.: Suppose

Re: CSS not being used when a Servlet is involved

2006-10-27 Thread Robbert
Christopher Schultz-2 wrote: > > Robbert, > >> (Yes, I have three locations for the statistics servlet. I don't know >> where >> to place it!) > > See below. > >> $CATALINA_HOME/webapps/ROOT/doc/o23/index.jsp (deze jsp file roept dus de >

CSS not being used when a Servlet is involved

2006-10-27 Thread Robbert
Hi, I have the following problem: If I include the Servlet using the jsp:include tag and if the web.xml file is configured correctly, it will invoke the Servlet, but the CSS won't load. If I change the URL pattern, the Servlet won't be invoked (with a "Resource unavailable" error) but the CSS is