无法在eclipse中加载和执行Javascript文件

时间:2016-03-05 08:18:43

标签: javascript jquery eclipse jsp

我在eclipse中创建了一个动态Web项目。 WebContent结构Image在下面提到.....

WebContent Structure Image

我的Login.jsp代码如下。

=============================================== ==========

enter code here

<head>
 <script type="text/javascript" src="JavaScript.js"></script>
 <script type = "text/javascript" src="js/jquery.validate.js"></script>
 <script type = "text/javascript" src="js/jquery.validate.min.js"></script>
 <script type = "text/javascript" src="js/jquery-1.12.0.js"></script>
 <title>Insert title here</title>
  </head>
    <body>
     <form id="loginForm" action="Login_Controller" method="post">
       <div id = "signin_box">
          <h3 align="center">Login to continue..</h3>

         <div class = "div_s">
             <input type = "text" id = "UserName" name = "UserName"                                                            
         </div>

         <div class = "div_s">
             <input type = "password" id = "Password" name = "Password">
         </div>

         <div>
             <input type = "submit" id = "submit_Btn" value = "Login">
         </div>
      </div>
   </form>
 </body>


enter code here

=============================================== ====================

JavaScript.js代码包含..

    $(document).ready(function(){       
       alert("Script Ready");
    });

==============================

当我运行Login.jsp页面时......理想情况下,应显示一条警告,说明“Script Ready”。但它不起作用。 Javascript文件未加载。 可以帮助确定可能出现的问题吗?

当网页加载到浏览器时......我在网址上看到类似的内容.... url

0 个答案:

没有答案