extレイアウト


<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'index.jsp' starting page</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="css/newstyle.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-3.0.0/resources/css/ext-all.css" />
		<script type="text/javascript" src="ext-3.0.0/adapter/ext/ext-base.js"></script>
		<script type="text/javascript" src="ext-3.0.0/ext-all.js"></script>

		<script type="text/javascript">
						
			Ext.onReady(function(){
				   new Ext.Viewport({ //       
				      layout:'border', //   border   
				       items:[northPanel,southPanel,centerPanel,westPanel]
				   });
				});
				
				//   
				var northPanel = new Ext.BoxComponent({
				     region:"north",
				     height:50,
				     el:"northDiv"
				});
				
				//   
				var southPanel = new Ext.BoxComponent({
				     region:"south",
				     height:20,
				     el:"southDiv"
				});
				
				//    
				var centerPanel = new Ext.Panel({
				     region:'center',
				     autoScroll: true,
				     title:'    '
				});
				
				//   
				var westPanel = new Ext.Panel({
				     region:'west',
				     id:'west-panel',
				     collapsible: true,
				     autoScroll: true,
				     width:180,
				     title:"    ",
				     split: true,
				     margins:"0 0 0 0",
				     layout:'accordion',
				     layoutConfig:{
				     animate:true
				     },
				     items:[{
				            title:'EXT    ',
				            border:false,
				            html:'<div id="tree-div" style="overflow:auto;width:100%;height:100%">1111</div>'
				        },{
				            title:'    ',
				            border:false,
				            html:'<div id="tree" style="overflow:auto;width:100%;height:100%">2222</div>'
				        },{
				            title:'    ',
				            border:false,
				            html:'<div id="tree3" style="overflow:auto;width:100%;height:100%">3333</div>'
				     }]
				});

		
		</script>
	</head>

	<body>
		<div id="northDiv">
			    
		</div>
		<div id="southDiv" align="center">
			    :XXXXXXX@2009-2012
		</div>
	</body>
</html>