1 7 package com.inversoft.verge.mvc.view.jsp.model.test; 8 9 10 import com.inversoft.verge.mvc.model.DefaultModelParser; 11 import com.inversoft.verge.mvc.model.web.WebMetaData; 12 13 14 24 public class TestTools { 25 26 public static String createWebLink(String def, String className, int scope) { 27 return "<input type=\"hidden\" name=\"" + DefaultModelParser.INPUT_PARAMETER + 28 "\" value=\"test|web|" + def + "|" + WebMetaData.CLASS_PARAMETER + 29 "=" + className + "|" + WebMetaData.SCOPE_PARAMETER + "=" + scope + "\"/>"; 30 } 31 32 public static String createWebParam(String name, String def, String className, 33 int scope) { 34 return DefaultModelParser.INPUT_PARAMETER + "=" + name + "|web|" + 35 def + "|" + WebMetaData.CLASS_PARAMETER + "=" + className + "|" + 36 WebMetaData.SCOPE_PARAMETER + "=" + scope; 37 } 38 } | Popular Tags |