// JSP1 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
<%@ taglib uri=“/WEB-INF/iscTaglib.xml” prefix=“isomorphic” %>
<%@ taglib prefix=“s” uri=“/struts-tags” %>
<HTML>
<isomorphic:loadISC skin=“isomorphic”/>
<HEAD>
</HEAD>
<% System.out.println(“POOJA :: TESTING :: admin_score_createTab .JSP “); %>
<BODY bgcolor=”#2A6393”>
<SCRIPT>
var context = “<%=request.getContextPath()%>”;
isc.HTMLPane.create({
ID:“adminGeneralHtmlPane”,
autoDraw:false,
width:“50%”,
height:“30%”,
contentsType:“page”,
dynamicContents:true,
httpMethod:“get”
})
isc.HTMLPane.create({
ID:“adminBFTabHtmlPane”,
autoDraw:false,
width:“50%”,
height:“30%”,
contentsType:“page”,
dynamicContents:true,
httpMethod:“get”
})
isc.TabSet.create({
ID: “scoreCardCreationTab”,
top:50,
width: “100%”,
height: “70%”,
tabs: [
{
id: “scoreCardGeneral”,
title: “General”,
icon: isc.Page.getAppImgDir() + “/line.jpg”, iconWidth: 3,iconHeight:20,
pane: adminScoreCardTabHtmlPane,
click:function(){
alert(“%%%%%%%%%%%%%%%% TESTING”);
ButtonAction(0);
}
},
{
id: “businessFunction”,
title: “Business Functions”,
icon: isc.Page.getAppImgDir() + “/line.jpg”, iconWidth: 3,iconHeight:20,
pane: adminBFTabHtmlPane,
click:function(){
ButtonAction(1);
}
}
}]
});
function ButtonAction(tabNo)
{
alert("TRANSFER FROM GENERAL"+tabNo);
scoreCardCreationTab.selectTab(tabNo);
if(tabNo=="0"){
adminGeneralHtmlPane.setContentsURL(context + "/screens/scoreCard/scoreCardGeneral.action");
}else if(tabNo=="1")
{
adminBFHtmlPane.setContentsURL(context + "/screens/scoreCard/scoreCardBF.action");
}
else{
alert("Pooja testing ::: previousButton.show:: " );
}
}
</SCRIPT>
</BODY>
</HTML>
// JSP2 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
<%@ taglib uri=“/WEB-INF/iscTaglib.xml” prefix=“isomorphic” %>
<%@ page import=“java.util.ArrayList,com.infosys.analytics.util.SmartClientUtil” %>
<%@ taglib prefix=“s” uri=“/struts-tags” %>
<HTML>
<HEAD>
<isomorphic:loadISC skin=“SmartClient”/>
<% %>
</HEAD>
<BODY bgcolor=“#95C6D7”>
<script>
var context = “<%=request.getContextPath()%>”;
var startDt = null;
isc.DynamicForm.create({
ID: “GeneralForm”,
top:“13%”,
left:“5%”,
autoDraw:true,
width: “80%”,
action:context+“/screens/scoreCard/scoreCardBF.action”,
fields: [
{name: “name”,
wrapTitle:false,
title: “Template Name”,
type: “text”,
required: true
},
{name: “description”,
wrapTitle:false,
title: “Description”,
type: “TextAreaItem”
},
{name: “endDt”,
wrapTitle:false,
useTextField:“true”,
required: true,
title: “End Date”,
type: “DateItem”
}
]
});
isc.Button.create({
title:“Next”,
showDisabled:false,
showShadow:true,
top:“40%”,
left:“5%”,
backgroundColor:“#2A6393”,
ID:“nextGeneralButton”,
click: function(){
GeneralForm.submitForm();
// scoreCardCreationTab.selectTab(scoreCardCreationTab.selectedTab()+1); //NOT WORKING
//scoreCardCreateTabWindow.parent.scoreCardCreationTab.selectTab(1);//NOT WORKING
}
});
</script>
</BODY>
</HTML>
Above, some sample code are mentioned, it contains JSP1.jsp and JSP2.jsp files having tabSet and dynamicForm respectively. I want to access the tabset component of JSP1.jsp from JSP2.jsp.