index.jsp 730 B

1234567891011121314151617181920212223
  1. <%@ page pageEncoding="UTF-8"%>
  2. <%@ page contentType="text/html; charset=UTF-8" language="java" %>
  3. <%@ page language="java"
  4. import="com.sysmodel.datamodel.xmlmodel.ModelFactory,
  5. com.sysmodel.datamodel.xmlmodel.able.SysModel,
  6. com.sysmodel.datamodel.xmlmodel.able.MdpConstant"%>
  7. <%
  8. SysModel sysmodel = ModelFactory.getSysmodel();
  9. String codeName = request.getParameter("name") == null ? "" : request.getParameter("name");
  10. String url = "";
  11. if(codeName.equals("")){
  12. return;
  13. } else {
  14. MdpConstant MdpConstant = sysmodel.getMdpConstantByName(codeName);
  15. if(MdpConstant.isTree()){
  16. url = "tree/container.jsp?codeName="+codeName;
  17. }else {
  18. url = "twodimensional/list.jsp?codeName="+codeName;
  19. }
  20. }
  21. response.sendRedirect(url);
  22. %>