1、创建表空间、用户名、导入数据
–创建表空间
–指定表空间文件c:/itcast297.dbf
–空间初始大小100
--每次增长10m
create tablespace itcast297
datafile 'c:/itcast297.dbf'
size 100m
autoextend on
next 10;
--创建用户 用户itcast297 密码 itcast297
--指定命名空间itcast297
create user itcast297 identified by itcast297
default tablespace itcast297
--给itcast297 赋权限 、所有权限
grant dba to itcast297;
2、index.jsp 默认页面的逻辑
http://localhost:8080/itcast297/进入 index.jsp
index.jsp
<!--window:窗口 .location.href = 相当浏览器输入地址栏 loginAction_login:跳转地址-->
window.location.href = "loginAction_login";
<!--跳转到LoninAction的Login方法
方法中现在没有什么逻辑业务
直接返回 seccuss 跳转到@Result(name="success",location="/WEB-INF/pages/home/fmain.jsp"),
-->
@Action("loginAction_login") //注解
@Result(name="success",location="/WEB-INF/pages/home/fmain.jsp"),
fmain.jsp 是一个页面布局 : 页面显示T型页面
<frameset rows="125,*" name="topFrameset" border="0">
<frame name="top_frame" scrolling="no" target="middleFrameSet" src="homeAction_title">
<frameset cols="202,*" height="100%" name="middle" frameborder="no" border="0" framespacing="0">
<frame name="leftFrame" class="leftFrame" target="main" scrolling="no" src="homeAction_toleft.action?moduleName=home" />
<frame name="main" class="rightFrame" src="homeAction_tomain.action?moduleName=home" />
</frameset>
</frameset>
3、将顶部菜单影响左侧和中间区域
<!--头部成按键 当按下 会跳转到响应的function中-->
<span id="topmenu" onclick="toModule('home');">系统首页</span><span id="tm_separator"></span>
<span id="topmenu" onclick="toModule('cargo');">货运管理</span><span id="tm_separator"></span>
<span id="topmenu" onclick="toModule('stat');">统计分析</span><span id="tm_separator"></span>
<span id="topmenu" onclick="toModule('baseinfo');">基础信息</span><span id="tm_separator"></span>
<span id="topmenu" onclick="toModule('sysadmin');">系统管理</span>
<--跳转到这个方法 在跳转到相应的Action和jsp-->
function toModule(moduleName){
top.leftFrame.location.href = 'homeAction_toleft.action?moduleName=' + moduleName;
top.main.location.href = 'homeAction_tomain.action?moduleName=' + moduleName;
linkHighlightMenu(this);
}
4、点左侧影响右侧的区域
<li> <!-- 跳转到deptAction 的list方法 target= 跳转到哪里显示页面 在布局时"main"设置为右侧框架 -->
<a href="${ctx}/sysadmin/deptAction_list" onclick="linkHighlighted(this)" target="main" id="aa_1">
部门管理
</a>
</li>