html代码:
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
<sj:head locale="zh-CN" jquerytheme="start" />
<link rel="stylesheet" type="text/css" href="css/form.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript">
$(document).ready(function() {
$.subscribe('tabcomplete', function(event,ui) {
if($("#productId").val()){
$('#tabpanel').tabs('enable', 1);
$('#tabpanel').tabs('enable', 2);
}
});
$.subscribe('onchange', function(event,ui) {
var tab = event.originalEvent.ui.index;
if(!$("#selectedTab").val()){
$("#selectedTab").val(tab);
}
});
});
</script>
</head>
<body style="margin: 10px; padding: 0px; font-size: 11px;">
<%@ include file="../fat.jsp"%>
<input type="hidden" id="productId" name="pId" value="${pId}" />
<input type="hidden" id="pName" name="pName" value="${pName}" />
<input type="hidden" id="selectedTab" name="selectedTab" value="${selectedTab}" />
<s:url id="remoteurl1" action="product!input.action?id=%{pId}&selectedTab=0" />
<s:url id="remoteurl2" action="productBusiness!showList.action?pId=%{pId}&pName=%{pName}&selectedTab=1" />
<s:url id="remoteurl3" action="command!query.action?pId=%{pId}&pName=%{pName}&selectedTab=2" />
<sj:tabbedpanel
id="tabpanel"
spinner="加载中..."
disabledTabs="[1,2]"
onCompleteTopics="tabcomplete"
onChangeTopics="onchange"
selectedTab="%{selectedTab}">
<sj:tab id="tab1" href="%{remoteurl1}" label="基本信息" />
<sj:tab id="tab2" href="%{remoteurl2}" label="产品构成" />
<sj:tab id="tab3" href="%{remoteurl3}" label="产品指令" />
</sj:tabbedpanel>
</body>
</html>
分享到:
相关推荐
在struts2 下 使用jquery-ui的多个基本组件的实例 适合初学着熟悉 struts2 和jquery ui
tag struts2 自定义标签 实例 tag struts2的自定义标签实例
struts2的jquery插件, 可使用jquery标签库快速进行前端开发。
Struts2 Jquery JSON Struts2 Jquery JSON Struts2 Jquery JSON Struts2 Jquery JSON Struts2 Jquery JSON Struts2 Jquery JSON Struts2 Jquery JSON Struts2 Jquery JSON
struts2-jquery-plugin-3.1.0.jar
struts2+jQuery+json 实例
struts2 的一个实例struts2 的一个实例struts2 的一个实例struts2 的一个实例
主要介绍了struts2的标签的详细使用例子说明
struts2实例struts2实例struts2实例struts2实例struts2实例struts2实例struts2实例struts2实例struts2实例struts2实例struts2实例struts2实例struts2实例struts2实例struts2实例struts2实例
struts2学习笔记,非本人所写,但有学习的价值,总结的很好,分享一个!
Struts2+Jquery 同步上传图片
这是学习struts2时记得重点笔记,包括了一些原理,ognl语句的编写,以及如何设置拦截器等等一些基本知识,起到复习和巩固的作用
struts2-jquery插件源码。版本号3.0.1
struts2四天的学习笔记。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
Struts2标签经典实例 Struts2标签经典实例
struts2学习笔记总结
struts2+jQuery+json 实例
Struts2学习笔记,介绍了struts2的基础部分
Struts的标签--实例对于一些标签中实例应用
struts2学习笔记struts2学习笔记struts2学习笔记