Myeclipse或Eclipse中搭建Easyui环境

1、下载Easyui。网址:http://www.jeasyui.com/download/index.php

2、下载后解压,里面的demo文件夹可以不用添加到工程中。

3、如图所示在工程datagrid中的src下的webapp下把刚才解压好的Easyui文件夹复制粘贴进去。

     

  4、例如其中的easy-strtuts2.jsp需要用到Easyui,在JSP页面的前面几行要这么配置:

[html] view plaincopy
 
  1. <%@ page language="java" pageEncoding="utf-8" isELIgnored="false"%>  
  2. <%  
  3.     String path = request.getContextPath();  
  4. %>  
  5. <%@ taglib prefix="s" uri="/struts-tags"%>  
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  
  7. <html>  
  8. <head>  
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">  
  10. <title>Easyui的Datagrid</title>  
  11.   
  12. <!-- 引入Jquery -->  
  13. <script type="text/javascript"   src="<%=path%>/easyui_1.3.2/jquery-1.8.0.min.js" ></script>  
  14.   
  15. <!-- 引入Jquery_easyui -->  
  16. <script type="text/javascript"   src="<%=path%>/easyui_1.3.2/jquery.easyui.min.js" ></script>  
  17.   
  18. <!-- 引入easyUi国际化--中文 -->  
  19. <script type="text/javascript"   src="<%=path%>/easyui_1.3.2/locale/easyui-lang-zh_CN.js"></script>  
  20.   
  21. <!-- 引入easyUi默认的CSS格式--蓝色 -->  
  22. <link rel="stylesheet" type="text/css"   href="<%=path%>/easyui_1.3.2/themes/default/easyui.css" />  
  23.   
  24. <!-- 引入easyUi小图标 -->  
  25. <link rel="stylesheet" type="text/css"   href="<%=path%>/easyui_1.3.2/themes/icon.css" />  
  26.   
  27. ..................  
原文地址:https://www.cnblogs.com/henuyuxiang/p/4283018.html