RS,
thank u!
To static html page, the tomcat load perfect, but
when load dynamic by servlet, the html page continue
with even problem the drop-daw menu no mounted by js(JavaScript).
A thing is right, the Tomcat serve the file .js correctly.
LCT
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, July 20, 2002 12:09 PM
Subject: Re: Tomcat and servlets
I would suggest, you view the page source to see if the "src" attribute of
<SCRIPT> tag is set correctly. If your javascript file, say "file1.js", is
in the "myApp" subdirectory of "webapps".
webapps
|
--- myApp
|
--- file1.js
and your Context entry is something like this:
<Context path="/myApp" docBase="myApp" debug="0" reloadable="false"
crossContext="false"/>
Then in the servlet you would create a response like this:
....
out.println("<HEAD>">
out.println("<SCRIPT LANGUAGE='Javascript' SRC='file1.js'>");
out.println("</SCRIPT>");
.....
("out" is an object of PrintWriter/PrintStream)
Also to confirm that Tomcat does serve the file1.js correctly, you could
try accessing the file1.js directly from the browser. Like this:
http://domain-name/myApp/file1.js.
RS
"Luciano Cunha Teixeira" <[EMAIL PROTECTED]> on 07/20/2002 11:52:15
AM
Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
To: "list-tomcat" <[EMAIL PROTECTED]>
cc:
Subject: Tomcat and servlets
Hi !!!
I want to execute servlet in tomcat 4.0.3, the page makeup
is dynamic. Into page have a drop-daw menu mounted by js(JavaScript),
but the tomcat4.0.3 not load the file js.
The directory where is js :
webapp
<application>
JavaScript
any suggestion ?
thank u all !!
Luciano da Cunha Teixeira
[EMAIL PROTECTED] melhor a Web. Fa�a o download GR�TIS do
MSN Explorer : http://explorer.msn.com.br/intl.asp#po
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>