title: External jquery file is not working in spring MVC?
body: <p>My Jsp is ,</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=UTF-8"
      pageEncoding="UTF-8"%&gt;
  &lt;%-- &lt;%@include file="include.jsp"%&gt; --%&gt;
  
  &lt;%@ taglib prefix="form" uri="../tld/spring-form.tld" %&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
      &lt;script type="text/javascript" src="/jquery/jquery-1.9.1.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/jquery/hello.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;%out.println("Hello") ;%&gt;
   &lt;form:form  commandName="person"&gt;
          Select A or B :
          &lt;form:input path="option" id="option" /&gt;
          &lt;input type="button" value="Ajax Submit" onclick="hello();"&gt;
  
          &lt;p id = "result"&gt;&lt;/p&gt;
  
  &lt;/form:form&gt; 
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><code>out.println("Hello")</code> is printed in browser and the form also displayed.Only the external Jquery is not working to do javaScript call.</p>
  
  <p>My dispatcher-Servlet will be,</p>
  
  <pre><code>&lt;bean id="viewResolver"
      class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;property name="prefix" value="/WEB-INF/jsp/"&gt;&lt;/property&gt;
      &lt;property name="suffix" value=".jsp"&gt;&lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>My external hello.js contains ,</p>
  
  <pre><code>function hello(){
      alert("Hello 99");
      var val = $("#option").val();
      alert("Option : "+val);
  }
  </code></pre>
  
  <p>My project structure is ,</p>
  
  <p><img src="https://i.stack.imgur.com/lds9Q.png" alt="enter image description here"></p>
  
  <p>When I click the button I get this in the console </p>
  
  <pre><code>Apr 8, 2013 9:03:08 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
  WARNING: No mapping found for HTTP request with URI [/SampleChat/jquery/hello.js] in DispatcherServlet with name 'dispatcher'
  Apr 8, 2013 9:03:09 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
  WARNING: No mapping found for HTTP request with URI [/SampleChat/jquery/jquery-1.9.1.js] in DispatcherServlet with name 'dispatcher'
  </code></pre>
  
  <p>I need to call the JavaScript function to get the alert .</p>
  
  <p>Good answers are definitely appreciated.</p>