Created
March 4, 2013 15:34
-
-
Save AhnSeongHyun/5083057 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page language="java" contentType="text/html; charset=EUC-KR" | |
pageEncoding="EUC-KR"%> | |
<%@ page import ="com.ash84.test.JsonMaker" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR"> | |
<title>Insert title here</title> | |
</head> | |
<body> | |
<% | |
String query = request.getParameter("q"); | |
String category = request.getParameter("cat"); | |
JsonMaker jMaker = new JsonMaker(); | |
String json = jMaker.toJson(query, category); | |
%> | |
<%=json %> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment