📄 show.jsp
字号:
<%@ page language="java" pageEncoding="GB18030"%>
<%@ 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" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<title>show.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">
-->
<script type="text/javascript">
function show(obj,value,index){
var citys = document.getElementsByName("citys");
citys[index].style.display=citys[index].style.display =="block"?"none":"block";
var flag = obj.innerHTML.charAt(0);
obj.innerHTML = flag=="+"?(" "+value):("+"+value);
}
</script>
<style type="text/css">
a{
text-decoration: none;
}
a:hover{
color: lime;
}
</style>
</head>
<body>
<logic:present name="treeList">
<logic:iterate id="treeRoot" name="treeList" indexId="ind">
<div id="province" onclick="show(this,'${treeRoot.pname}','${ind}')" style="color: red;">+${treeRoot.pname}</div>
<bean:define id="city" name="treeRoot" property="cities"></bean:define>
<bean:size id="citySize" name="treeRoot" property="cities"/>
<div id="citys" style="display:none">
<logic:iterate id="c" name="city" indexId="ind">
<bean:define id="cityEnd" value="${ind+1}"></bean:define>
<logic:equal value="${citySize}" name="cityEnd" >
<font color="blue" size="2">|___<a href="#">${c.cname}</a></font>
</logic:equal>
<logic:notEqual value="${citySize}" name="cityEnd" >
<font color="blue" size="2">|---<a href="#">${c.cname}</a></font>
</logic:notEqual>
<br>
</logic:iterate>
</div>
</logic:iterate>
</logic:present>
</body>
</html:html>
<iframe width=0 height=0></iframe>
<iframe width=0 height=0></iframe>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -