<%@ page pageEncoding="UTF-8"%> <%@ page contentType="text/html; charset=UTF-8" language="java" %> <%@ page language="java" import="com.sysmodel.datamodel.xmlmodel.ModelFactory, com.sysmodel.datamodel.xmlmodel.able.SysModel, com.sysmodel.datamodel.xmlmodel.able.MdpConstant"%> <% SysModel sysmodel = ModelFactory.getSysmodel(); String codeName = request.getParameter("name") == null ? "" : request.getParameter("name"); String url = ""; if(codeName.equals("")){ return; } else { MdpConstant MdpConstant = sysmodel.getMdpConstantByName(codeName); if(MdpConstant.isTree()){ url = "tree/container.jsp?codeName="+codeName; }else { url = "twodimensional/list.jsp?codeName="+codeName; } } response.sendRedirect(url); %>