productRelative.jsp 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <%@ page language="java" contentType="text/html; charset=utf-8"
  2. pageEncoding="utf-8"%>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  6. %>
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  10. <link rel="stylesheet" type="text/css" href="<%=basePath%>resource/ext/resources/css/ext-all-gray.css"/>
  11. <link rel="stylesheet" href="<%=basePath%>resource/css/main.css" type="text/css"></link>
  12. <script type="text/javascript" src="<%=basePath%>resource/ext/ext-all.js"></script>
  13. <script type="text/javascript" src="<%=basePath%>resource/i18n/i18n.js"></script>
  14. <script type="text/javascript">
  15. Ext.Loader.setConfig({
  16. enabled: true
  17. });//开启动态加载
  18. Ext.application({
  19. name: 'erp',//为应用程序起一个名字,相当于命名空间
  20. appFolder: basePath+'app',//app文件夹所在路径
  21. controllers: [//声明所用到的控制层
  22. 'common.ProductRelative'
  23. ],
  24. launch: function() {
  25. Ext.create('erp.view.common.productRelative.ProductRelative');
  26. }
  27. });
  28. var caller = getUrlParam('whoami');
  29. </script>
  30. </head>
  31. <body>
  32. </body>
  33. </html>