Categories | Question details Back To List | ||
grid inside the div tag in jsp my main.jsp includes two jsp files in the div tags. the two files included creates grids respectively, but when i run my jsp the grid in the div tags are not shown . for example my main.jsp is <%@ page language="java" contentType="text/html" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <html> <body> <div style="position:absolute;top:500;width=100%;"> <jsp:include page="header.jsp" flush="true" /></div> <BR> <div style="position:absolute;border:1px solid black;top:100;width=100%; Z-INDEX:100;height:100"> <BR><BR> <jsp:include page="Propertyinfo.jsp"/> </div><BR><BR> <div style="position:absolute;border:1px solid black;top:300;width=100%; Z-INDEX:100;height:100"> <BR> <jsp:include page="Propertylog.jsp" /> </div><BR><BR> <div> </div> </body> </html> included jsp files are propertyinfo.jsp and propertylog.jsp propertyinfo.jsp is <html> <head> <title>CustomerInformation</title> <link rel="STYLESHEET" type="text/css" href="codebase/dhtmlxgrid.css"> <link rel="STYLESHEET" type="text/css" href="codebase/dhtmlxgrid_skins.css"> <script src="codebase/dhtmlxcommon.js"></script> <script src="codebase/dhtmlxgrid.js"></script> <script src="codebase/dhtmlxgridcell.js"></script> </head> <script> function doOnLoad(){ mygrid = new dhtmlXGridObject('gridbox'); mygrid.setHeader("serial#,Mun.Areacode,Mun.Plot#,PropType,PropID,CustomerID,PropCategory,PropSubcategory,Basin,CrossBasin,Street,Area,Landmark,ConnectionFee,RegStatus,W/FEWA"); mygrid.setInitWidths("60,100,80,80,60,80,100,120,50,80,65,60,80,80,80,80"); /* mygrid.setColAlign("right,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left") mygrid.setColTypes("dyn,ed,txt,price,ch,coro,ro"); mygrid.setColSorting("int,str,str,int,str,str,na") */ mygrid.setSkin("light"); mygrid.init(); //mygrid.loadXML("grid_big.xml"); } </script> <body onload="doOnLoad()" style="overflow:hidden" > <link rel='STYLESHEET' type='text/css' href='common/style.css'> <div id="gridbox" width="100%" height="65" style="background-color:white;Z-INDEX:100;border:1px solid blue;"></div> </body> </html> and propertylog.jsp is <html> <head> <title>CustomerInformation</title> <link rel="STYLESHEET" type="text/css" href="codebase/dhtmlxgrid.css"> <link rel="STYLESHEET" type="text/css" href="codebase/dhtmlxgrid_skins.css"> <script src="codebase/dhtmlxcommon.js"></script> <script src="codebase/dhtmlxgrid.js"></script> <script src="codebase/dhtmlxgridcell.js"></script> </head> <script> function doOnLoad(){ mygrid = new dhtmlXGridObject('gridbox'); mygrid.setHeader("serial#,Row#,SessionID,PlotNo,MunAreacode,MunPlotNo,Action,Status,ParentPlotNo,Comment,UserDefComment,NetworkLog,LastUpdatedBy,LastUpdatedDate"); mygrid.setInitWidths("60,60,80,60,100,90,50,50,90,90,120,100,100,120"); /* mygrid.setColAlign("right,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left") mygrid.setColTypes("dyn,ed,txt,price,ch,coro,ro"); mygrid.setColSorting("int,str,str,int,str,str,na") */ mygrid.setSkin("light"); mygrid.init(); //mygrid.loadXML("grid_big.xml"); } </script> <body onload="doOnLoad()" style="overflow:hidden" > <link rel='STYLESHEET' type='text/css' href='common/style.css'> <div id="gridbox" width="100%" height="65" style="background-color:white;Z-INDEX:100;border:1px solid blue;"></div> </body> </html> my main.jsp div tags are not displaying the output of the included pages. please help. Answer posted by Support on Aug 14, 2008 05:59 You are including the full pages with head and body sections. As result result page will have a mess of tags, and only one of init codes will be launched ( because there are two body tags, with onload handlers ) |