Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How do I include external files in dynamic web project?
How do I include external files in dynamic web project? [message #222721] Sun, 19 October 2008 15:16 Go to previous message
Eclipse User
Originally posted by: erics.nospam.com

I'm specifically thinking about Dojo, but this question pertains to any
external script or html file.

I'm working in Eclipse 3.3 on a dynamic web project destined for Tomcat
server. The external files are on the server in a subdirectory of
"webapps". Let's call it "common". If I refer to it like this in an HTML
file in my project, I know it will load fine when my project is copied over
to the server:

<script language="javascript" src="/common/script1.js"></script>

<a href="/common/page2.html">External HTML file</a>

But how do I get it to work when I'm debugging in Eclipse? It seems that
when I do "debug on server" in Eclipse, it copies my project files to a
temporay directory and runs from there. The problem is that the "common"
subdirectory doesn't exist in that temporary directory. So the scripts in
script1.js don't get loaded and page2.html is not found. Is there some way
to tell the Eclipse project to point to the "common" subdirectory in the
server installation when I'm debugging?

Thanks.
- Eric S.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:How to contribute to Tomcat's shared/lib?
Next Topic:How to add new features MANUALLY?
Goto Forum:
  


Current Time: Tue May 21 19:41:59 EDT 2013

Powered by FUDForum. Page generated in 0.01751 seconds