DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Sep 2005
    Posts
    39

    How do include a javascript file into JSP?

    I am using the following code to include some java script (- no error messages are being displayed, but it is not working):

    <jsp:include page = "validation.js" flush = "true" />

    I also placed this in the header tags:
    <script language="JavaScript" type="text/JavaScript">
    <--

    //-->
    </script>
    As well as in the form tag I placed the usual code:

    <form name="claimform1" onSubmit="return Claim(this)" id="claimform1" method="post" action="Claim_Form_2.jsp">


    The java script code is saved in a file called "validation.js" Can anyone suggest what else I can do for JSP to recognise the javascript code?

    Maria
    Last edited by Maria Modeste; 10-16-2005 at 07:50 AM.

Similar Threads

  1. wav file fade in out help
    By jase_dukerider in forum C++
    Replies: 2
    Last Post: 04-14-2005, 07:48 PM
  2. File uploading / objFile.Write problem
    By Tomer Cagan in forum ASP.NET
    Replies: 1
    Last Post: 07-24-2001, 09:01 AM
  3. Include File question
    By Beginner in forum ASP.NET
    Replies: 3
    Last Post: 12-01-2000, 11:45 AM
  4. Replies: 0
    Last Post: 08-22-2000, 10:54 PM
  5. Replies: 3
    Last Post: 05-31-2000, 10:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links