I still dont understand why you are not using custom resource loader instead of the servlet. If you use that, you have control over which resource files are loaded first - the ones in the war or the ones outside.
As far as background images in the css, dont quote me on this, but you can use absolute, relative paths or urls. If you have a fixed folder name where the images are going to reside, you can specify it any one of those ways. I dont think css files can read environment variables to avoid this fixed location. One strategy would be to use the urls, and let apache (or whichever webserver) serve the images. You can then play with the location etc in apache config. Mathias P.W Nilsson wrote: > > I still have struggle with this image, flash, files and Wicket > > Here is my problem. > > I have all my css files, images, flashes pdf etc in a dir let's say > > c:/mydir/ > > To access these files from my webapp I have created a Servlet that get the > files from my dir outside of the container using this path > /Files/myimage.gif > > In my web.xml I have the servlet <url-pattern>/Files/*</url-pattern> > > The reasone I have the files outside the container is so that the css, > files can be changed without having to deploy the war file again or that > the css is Changed in the container but after redeploying the changes is > lost because of a designer changing the css. > > Now, I can't use wicket declarations in my css file and when I have > background images in my css the servlet is not found. I would like to use > only wicket and not servlets mapping the files outside of the container. > How do you add background images in a css? > > Do you keep the background image and the css inside the container? What > about when we need to change background image? > > > -- View this message in context: http://www.nabble.com/Mount-files-outside-container-tp19232069p19259336.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
