Hello,
i think i have a runtime problem with my taglibs and hope you can help me.
Here is the listing from my taglib in my jsp file.
------------------------------------------------------------------------------------------------------------------
<ite:table current="VO" array="<%=list%>">
<ite:head value="<%= VO %>"/>
<ite:column current="ROW" array="<%= VO.getArrayList() %>">
<tr>"
<ite:row current="STRING" array="<%= ROW %>">
<td>
<ite:cell cell="<%= STRING %>"/>
</td>
</ite:row>
</tr>
</ite:column>
</table>
</ite:table>
------------------------------------------------------------------------------------------------------------------
And here the listing of my HeadTag implementation from my <ite:head> tag
------------------------------------------------------------------------------------------------------------------
public int doStartTag() throws JspException {
includeHeader();
return this.SKIP_BODY;
}
protected void includeHeader(){
//get tableName of GehauseVO Object
tableName = value.getTableName();
//get jsp from xml with tablename
Element root = null;
com.ite.ecatalog.tools.resources.XMLLocator xmlLoc = new
com.ite.ecatalog.tools.resources.XMLLocator();
try{
root = xmlLoc.getRoot("com/ite/ecatalog/config/header.xml");
}catch(com.ite.ecatalog.exceptions.LocatorException e){}
Element origin = root.getChild(tableName);
String jspLoc = origin.getText();
try {
pageContext.getRequest().getRequestDispatcher(jspLoc).include(pageContext.getRequest(),
pageContext.getResponse());
}catch(Exception e){
System.out.println(e);
}
}
------------------------------------------------------------------------------------------------------------------
With the "includeHeader" method i will include a complete table in my jsp File. But it
will not work correct. The table is included before the old table is finished. Here an
example of the source from my
jsp File.
------------------------------------------------------------------------------------------------------------------
<td>42</td>
<td>50</td> <<<<<<<<<<<<<<<<<<<<<<<<<- "Old Table"
<td>M36</td>
<td>1 1/2</td>
<td>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< HERE STARTS NEW TABLE HEADER (this part is
included with the RequestDispather.include)<<<<<<<<<<<<<<<<
<br>
<table width="600" align="center" border="2" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="#BBC5D5" valign="top">
<!-- Welle -->
<font face="Arial, Helvetica, sans-serif" color="#000000"
size="2"> Welle </font></td>
<td align="center" bgcolor="#BBC5D5" colspan="15" valign="top">
<!-- Abmessung -->
<font face="Arial, Helvetica, sans-serif" color="#000000"
size="2">Abmessung</font></td>
<td align="center" bgcolor="#BBC5D5" valign="top">
<!-- Gewicht -->
.
.
.
.
.
<td align="center" bgcolor="#BBC5D5" valign="top">
<!-- in -->
<font face="Arial, Helvetica, sans-serif" color="#000000" size="2">in</font></td>
<td align="center" bgcolor="#BBC5D5" valign="top">
<!-- kg -->
<font face="Arial, Helvetica, sans-serif" color="#000000" size="2">kg</font></td>
<td align="center" bgcolor="#BBC5D5" colspan="10" valign="top">
<!-- FAG -->
<font face="Arial, Helvetica, sans-serif" color="#000000" size="2">FAG</font></td>
</tr>
<br>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< HERE ENDS NEW TABLE HEADER (this part is
included)<<<<<<<<<<<<<<<<
115</td>
<td>SNV340</td>
<td>22332K.MB</td>
<td>H2332</td> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< LAST
CONTENT OF OLD TABLE
<td>FRM340/5</td>
<td>DH532</td>
<td>TSV532</td>
<td>FSV532</td>
<td>DKV290</td>
<td>SNV</td>
</tr>
</table>
<br>
<tr>
<td>1</td>
<td>25</td> <<<<<<<<<<<<<<<<<<<<<<<<<<< NEW CONTENT OF NEW
TABLE
<td>30</td>
------------------------------------------------------------------------------------------------------------------
I hope you unsterstand my problem and can help me.
Lot of thanxs for reading the whole stuff. :-)
Mfg,
Andreas Metz