Community discussion forum

Javascript and Java Server Pages

  • 6 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

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 6 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?

  • 6 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).