Skip to content

Instantly share code, notes, and snippets.

@AhnSeongHyun
Created March 4, 2013 15:34
Show Gist options
  • Save AhnSeongHyun/5083057 to your computer and use it in GitHub Desktop.
Save AhnSeongHyun/5083057 to your computer and use it in GitHub Desktop.
<%@ 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