1 <%
2 String variantID = request.getParameter("category");
3 try {
4 //通过 variantID 获取变量Collection
5 Map varMap =
6 UMUtils.getVarMgrLocal().getVariant(variantID);
7 VariantModel vm = new VariantModel();
8 %>
9 <root>
10 <%
11 Iterator it = varMap.entrySet().iterator() ;
12 while(it.hasNext())
13 vm = (VariantModel)it.next();
14 {
15 System.out.println("<var id="+vm.getId() +" value="+ vm.getValue() +"/>" );
16 }
17 }catch(Exception e){
18 e.printStackTrace();
19 logger.wtriteLog(e);
20 }
21 %>
22 </root>