54 |
|
|
55 |
|
|
56 |
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { |
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { |
57 |
|
|
58 |
|
response.setHeader("Access-Control-Allow-Origin", "*"); //Allow ajax calls from everywhere |
59 |
|
|
60 |
AddressSearch search = (AddressSearch) this.getServletContext().getAttribute("search"); |
AddressSearch search = (AddressSearch) this.getServletContext().getAttribute("search"); |
61 |
if (search == null) { |
if (search == null) { |
192 |
|
|
193 |
} |
} |
194 |
|
|
195 |
private String generateErrorXML(String msg) { |
public static String generateErrorXML(String msg) { |
196 |
StringBuilder sb = new StringBuilder(); |
StringBuilder sb = new StringBuilder(); |
197 |
sb.append("<result>"); |
sb.append("<result>"); |
198 |
sb.append("<status>error</status>"); |
sb.append("<status>error</status>"); |