On 12/9/06, Garey Mills <[EMAIL PROTECTED]> wrote:

     I checked out the web pretty extensively and couldn't find the answer
to the question in the subject. I am working on some Ajax stuff that will
eventually have some servlets, but in the beginning I just want to set up an
index.html that loads some javascript libraries along with the page. How
would I set up a web.xml to reflect that? I've tried commenting out the
<servlet> and <servlet-mapping> tags, but the app won't load and I can't see
it's home directory via tomcat. I tried adding a <Context> tag in
servlet.xml. That works in that I can see the page, but I'm having problems
loading the javascript I want and I am not sure whether it is because of how
I am accessing the html.

1. If you're strictly using static content, you should be able to simply
drop the context into your host's webapps directory without a web.xml
and see it. Your context's docBase *is* in that appBase, right?

But if you have a web.xml with errors -- yeah, it won't be availabile.

2. "problems loading..." -- *what* problems? 404 on the script files,
or ___? ..."because of how I am accessing the html" -- what does that
mean? Are you using something other than a Web browser? If it's a
404 problem, what do your access logs show?

A little more info would help... :-)

--
Hassan Schroeder ------------------------ [EMAIL PROTECTED]

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to