日期:2014-05-16 浏览次数:20319 次
Ext.create('Ext.panel.Panel', {
width: 1024,
height: 600,
layout: 'border',
items: [{
region:'north',
xtype:'panel',
height:100,
collapsible: false,
margins: '0 5 5 5' ,
loader : {
url : path + '/files/jsp/top.jsp',
autoload : true
}
},{
region: 'center',
xtype: 'panel',
layout: 'fit',
margins: '0 5 5 5' ,
loader : {
url : path + '/files/jsp/center.jsp',
autoload : true
}
},{
region: 'south',
xtype: 'panel',
height: 100,
split: false,
margins: '0 5 5 5' ,
loader: {
url : path + '/files/jsp/bottom.jsp',
autoload : true
}
},
],
renderTo: Ext.get('main-div')
});
<%@ 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%>">
</head>
<body>
<a id='aHome'>首页</a><a id='aIntro'>俱乐部简介</a>
</body>
</html>