[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: How to place web files outside the application context?

Bill,
I actually did exactly the last thing you mentioned.  Another option is to 
run a separate HTTP server to serve up the static content.  The environment 
I'm developing for has a web server that serves up the static content, 
employs a module to handle ColdFusion templates, and redirects to a BEA WLS 
to handle other dynamic web apps.  I simulate that environment on my 
localhost by deploying to my local WLS separate dynamic web apps containing 
the static content.  (Iin my case the browser needs to load static content 
from /shared, /images, and /styles).  Now I'm also running CF-8 as a web app 
under WLS.  It works great and I can easily migrate applications from my 
localhost to QA and production servers without changing any of the code.

Regards,
Stephen Davison

"Bill Davidson" <bill.davidson@xxxxxxxxx> wrote in message 
news:fvmfmo$f6v$1@xxxxxxxxxxxxxxxxxxxx
> I'm using eclipse-jee-ganymede-M6 and I can't seem to figure out
> how to put files outside of the application context.  In particular,
> I would like to put some of my more generic CSS and Javascript files
> in top level /css/ and /js/ directories (relative to the server root)
> rather than in /MyAppName/css/ or /MyAppName/js/ so that I could use
> them with other apps without having multiple copies on my server.
>
> I'm fine with putting them in another project if I need to but I need
> them to still be served up by the same local instance of Tomcat 6 that's
> serving up MyAppName.  This instance is apparently configured by
> Eclipse and puts the files in some funky location deep in the bowels
> of the workspace .metadata/.plugins directory.  I need the css/js files
> in this instance because I want to use them in my JSP's.  I've tried
> creating other web projects, both static and dynamic but I can't seem to
> get it right.  It always wants to put the files under the project name/
> application context relative to the server root.  I suppose I could
> create a project called "css" and another called "js" but that just
> feels wrong.