In my JSP file, there is a Form which send a "POST" request to the Restlet Server. And then, the Restlet Server will return a JsonRepresentation, how to get the Json and show the Json in my JSP.Like this?But is seems not work,why?
<div>
<form id="simpleForm" method="post" enctype="multipart/form-data">
<input type="text" name="zi"></input>
<input type="file" class="file" name="tupian"></input>
<input type="submit" value="query"></input>
</form>
</div>
<script>
$("#simpleForm").submit(function(event) {
alert("success");
event.preventDefault();//next, I want to post the form on the up to the Reselet Server and deal with the result come from the server,but the server does not work
$.post("http://127.0.0.1:9192/CalligraphyWordService",$("#simpleForm").serialize(),function(data) {
.......
});
});
</script>