You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by MARTIN Franck <fr...@c-s.fr> on 2003/06/17 09:15:24 UTC

Tomcat and javascript files

Hi all,

I am using Tomcat 3.2.1 and i have created a sub-directory in the webapps directory. It is named Hestia.
In this sub-directory i placed my home page with the following source code.

<html>
 <head>
  <title>ALTA - Page d'Accueil</title>
 </head>
 
 <body bgcolor="blue">
  <SCRIPT language="JavaScript" src="coolmenus.js"></SCRIPT>
  <SCRIPT language="JavaScript" src="menu.inc"></SCRIPT>
 </body>
</html>

The files named coolmenu.js and menu.inc are also located in the Hestia sub-directory. They only contain javascript instructions and functions.

When i browse the page at http://localhost:8080/Hestia/PageAccueil.htm i only get a blue page with no menu.

The following errors are displayed in the console :

2003-06-17 09:01:03 - Ctx( /Hestia ): IOException in: R( /Hestia + /coolmenus.js + null) Connection aborted by peer: socket write error
2003-06-17 09:01:03 - Ctx( /Hestia ): 404 R( /Hestia + /menu.inc + null) null

Does anyone have an idea?

Thanks in advance

Franck


Re: Tomcat and javascript files

Posted by Kwok Peng Tuck <pe...@makmal.net>.
If you tried src="/$WEB-APP/Hestia/coolmenus.js" does it work ?


MARTIN Franck wrote:

>Hi all,
>
>I am using Tomcat 3.2.1 and i have created a sub-directory in the webapps directory. It is named Hestia.
>In this sub-directory i placed my home page with the following source code.
>
><html>
> <head>
>  <title>ALTA - Page d'Accueil</title>
> </head>
> 
> <body bgcolor="blue">
>  <SCRIPT language="JavaScript" src="coolmenus.js"></SCRIPT>
>  <SCRIPT language="JavaScript" src="menu.inc"></SCRIPT>
> </body>
></html>
>
>The files named coolmenu.js and menu.inc are also located in the Hestia sub-directory. They only contain javascript instructions and functions.
>
>When i browse the page at http://localhost:8080/Hestia/PageAccueil.htm i only get a blue page with no menu.
>
>The following errors are displayed in the console :
>
>2003-06-17 09:01:03 - Ctx( /Hestia ): IOException in: R( /Hestia + /coolmenus.js + null) Connection aborted by peer: socket write error
>2003-06-17 09:01:03 - Ctx( /Hestia ): 404 R( /Hestia + /menu.inc + null) null
>
>Does anyone have an idea?
>
>Thanks in advance
>
>Franck
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org