Cannot get $.getjson method to run when invoking a jsp
<p>I am trying to change part of page without reloading using $.getjson(). I am doing this using a netbeans ide.</p>

<p>When i have the jsp  as the one mentioned in welcome file of the web.xml the method works fine and i can see the change dynamically. (The URL is localhost:8084/MyProj/)</p>

<p>But  if try to run the file directly by typing the URL(ie., localhost:8084/MyProj/show.jsp), the values are not loaded .</p>

<p>The code i have used in json is ...</p>

<pre><code>$.getJSON('dataServlet', function(responseJson) {
  $.each(responseJson, function(index, item) {
    $("#verfdate").val(item.verfdate);
  });
});
</code></pre>

<p>Do i need to add anything to get the individual jsp running..</p>
