jsp页面写一个接口供其他人访问,和调用接口

<%@ page import="com.wondertek.datau.portal.bms.BmsUtil"%>


<%
   out.println(BmsUtil.bmsOrder("4D9903FF004735900000585FF645D668","","111000771047",null));
%>
<%@page language="java" contentType="application/json; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ page import="org.codehaus.jettison.json.JSONObject"%>


<%
    String iphone  = request.getParameter("iphone");
    String serviceNums = "13988881111,15633332222";
    JSONObject json = new JSONObject();   
    boolean  flag =false; 
try { 
    if(iphone !=null && !"".equals(iphone)){
      flag = serviceNums.contains(iphone);
     
     json.put("flag",flag );
     out.println(json );  
  }else{
json.put("flag",flag );
out.println(json);  
   }
} catch (Exception e) {
			
		}
 
%>

 

你可能感兴趣的:(后端)