日期:2014-05-16 浏览次数:22959 次
<%@ page language="java" 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 'login' 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="./resources/css/ext-all.css" />
<script type="text/javascript" src="./bootstrap.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
var _panel=new Ext.form.Panel({
title:"人员信息",
// frame:true, //是否渲染表单
width:300,
height:200,
// rendweTo:'form',
listeners:{
"render":function(_panel){
_panel.add({xtype:"textfield",fieldLabel:"姓名"});
_panel.add(new Ext.form.TextField({fieldLabel:"地址"}));
}
}
});
_panel.addButton({text:"确定"});
_panel.addButton(new Ext.Button({text:"取消",minWidth:100}));
_panel.render(Ext.getBody());
});
</script>
</head>
<body>
<br>
</body>
</html>