简单HTML框架

本文介绍了一个使用 Struts 框架进行页面集成和布局的例子,通过 index.html 页面设置多个子页面的框架结构,并展示了 left.jsp 中如何配置 Struts 标签库及实现左侧导航栏的功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

index.html:

 

<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
  <title></title>
 </head>

 <frameset rows="100,*" cols="200,608">
  <frame src="" scrolling="no" noresize="noresize" id="top_left"></frame>

  <frame src="top.jsp" scrolling="no" name="top_right"></frame>
  <frame src="left.jsp" scrolling="no" name="left_main"></frame>

  <frame src="" scrolling="no" name="right_main"></frame>
 </frameset>

</html>

 

left.jsp:

 

<%@ page language="java" pageEncoding="gbk"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<%
 String path = request.getContextPath();
 String basePath = request.getScheme() + "://"
   + request.getServerName() + ":" + request.getServerPort()
   + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
 <html:base />

 <title>left.jsp</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="styles.css">
 -->

</head>

<body>
 <center>
  <h3>

   <a href="<%=basePath%>spBaseinfo.do?status=list&type=0&spage=1"
    target='right_main'> 商品管理</a>
   <br>
   <a href="tem.jsp" target=right_main>库房管理</a>
   <br>
   供货商管理
   <br>
   员工管理
   <br>
   会员管理
   <br>
   类别管理
   <br>
   品牌管理
   <br>

  </h3>
 </center>
 <%=basePath%>
</body>
</html:html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值