Hello Marju Here you can see a .jsp fragment where I use what you need:
There are some instruction before <html> tag that are not shown here, that is why I put "..." ... strAction = request.getRequestURI(); strImagen = strAction.substring(0,9)+"/jsp/images/"; // strJsp mantains a reference where my jsp´s files are stored strJsp = strAction.substring(0,9)+"/jsp/"; %> <html> <link href="<%= strJsp %>css/mystylefile.css" rel="stylesheet" type="text/css"> <link href="<%= strJsp %>css/ie.css" rel="stylesheet" type="text/css"> <head> <title>Situación Actual</title> </head> <script language="JavaScript" src="<%= strJsp %>js/funciones.js"></script> <body background="<%= strImagen %>fondo.jpg"> <% if(aUsuario != null){ vDatos = (Vector)request.getSession().getAttribute("Resultado"); %> <h1>Plan de Negocio </h1> <h3 class="centrado"> Paso 1 - Situación Actual </h3> ... And the jsp continue ... I hope you can get it. Mauricio Fernández A. Ingeniero de Sistemas U. Autónoma de Manizales (Colombia) -----Mensaje original----- De: marju jalloh [mailto:[EMAIL PROTECTED] Enviado el: viernes, 06 enero, 2006 15:54 Para: Tomcat Users List Asunto: Re: how to execute javascript file in jsp I did what you said <script language="javascript" src="myjavascript.js" type="text/javascript"></script> it compile with no error but the script did not execute.Still no solution Thanks Charl Gerber <[EMAIL PROTECTED]> wrote: type="text/javascript"> --- marju jalloh wrote: > Hi everyone, > I`m using tomcat 4.1.* on Linux (serge) but find it > diffecult to include javascript file in my jsp.I did > it with > <%@ page import="myjavascript.js*"%> > but it could not find the file.Also with > . > It compile but the scriptcould not execute > > > Can anyone help me > Thanks in advance > > > > --------------------------------- > Yahoo! DSL Something to write home about. Just > $16.99/mo. or less --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Yahoo! Photos Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]