Aha!  we tried to do the same thing when we first started building our JSP
pages.
Try using
        <script language="javascript" src="test.js"></script>
I think the <%@ include file="..." %> is expecting .jsp or .html pages, not
.js.

-Kelvin


> ----------
> From:         Guilherme - PerConsult[SMTP:[EMAIL PROTECTED]]
> Reply To:     Guilherme - PerConsult
> Sent:         Tuesday, December 07, 1999 1:42 PM
> To:   [EMAIL PROTECTED]
> Subject:      include .JS doesn`t work
> Importance:   High
>
> Hi...
>
> I`m trying to include a JS file in my JSP like this:
>
> > <%@ include file="test.js" %>
>
> This file test.js works with the form, to see if the user completed all
> the fields, and those things....  but it isn`t work.... why???
>
> Thank you!
> guilherme
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to