diff --git a/spring-mvc-java/src/main/webapp/WEB-INF/company.html b/spring-mvc-java/src/main/webapp/WEB-INF/view/index.jsp similarity index 74% rename from spring-mvc-java/src/main/webapp/WEB-INF/company.html rename to spring-mvc-java/src/main/webapp/WEB-INF/view/index.jsp index e1b3c6e441..fa5498c966 100644 --- a/spring-mvc-java/src/main/webapp/WEB-INF/company.html +++ b/spring-mvc-java/src/main/webapp/WEB-INF/view/index.jsp @@ -1,3 +1,5 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1" %> @@ -45,26 +47,20 @@ }); }); - function getCompanyData(data) { - document.write("ID: "+data.id+"
"); - document.write("NAME: "+data.name+"
"); - document.write("
"); + function getCompanyData(data) { + $("#response").append("ID: "+data.id+"
"); + $("#response").append("NAME: "+data.name+"
"); + $("#response").append("
"); } - - -
- - -
- - - -
+ + +
+ \ No newline at end of file