Javascript and Java Server Pages

java , javascript United States
  • 18 years ago

    Hello,


    I have some JSP pages which need to include some Javascript after the page being loaded. But the following code does not works, why?


    Code:
    <script language="javascript" src="external.js">


    please help!


    TQ


    neo

  • 18 years ago

    try


    Code:
    <script type="text/javascript" src="external.js"></script>


    also is the external.js file in the same fodler as the jsp page you are referenceing it from?

  • 18 years ago

    Yes, the file is within the same directory.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter” - Eric Raymond