Hi, Dave ..
>
> Can you post the JSP in question, or is it too large?
>
See below ..

>
> Then what makes you think it's a taglib issue?
>
There seem to be a number of similar issues posted on the web about that
have a common characteristic of "unbalanced" and "working under Tomcat 4 and
not Tomcat 5".  Though I could find nothing conclusive.

Here is the .jsp.  It is essentially the early sample from the "Struts:
Complete Reference" book by James Holmes.

--< cut >---

<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  <title>
    ABC Inc. Human Resources Portal -- Employee Search
  </title>
</head>
<body>

 ABC Inc. Human Resources Portal <br>
<hr width="80%" noshade="true">
<html:errors/>
<html:form action="/search">
  <table  cellspacing="2" cellpadding="1" border="1" width="80%">
    <tr>
        <td align="right"><bean:message key="label.search.name"/>:</td>
        <td><html:text property="name"/></td>
    </tr>
    <tr>
        <td></td>
        <td>-- or --</td>
    </tr>
    <tr>
        <td align="right"><bean:message key="label.search.empID"/>:</td>
        <td><html:text property="empID"/> (xxx) </td>
    </tr>
    <tr>
        <td></td>
        <td><html:submit/></td>
    </tr>
  </table>
</html:form>

<logic:present name="searchForm" property="results"/>
  <hr width="80%" size=1 noshade="true">
  
  <bean:size id="size" name="searchForm" property="results"/>
  <logic:equal name="size" value="0">
    <center>
      No Employees Found
    </center>
  </logic:equal>
  
  <logic:greaterThan name="size" value="0">
    <table  cellspacing="2" cellpadding="1" border="1" width="80%">
      <tr>
          <th>Name</th>
          <th>Employee ID</th>
      </tr>
      <logic:iterate id="result" name="searchForm" property="results">
        <tr>
            <td><bean:write name="result" property="name"/></td>
            <td><bean:write name="result" property="empID"/></td>
        </tr>
      </logic:iterate>
    </table>
  </logic:greaterThan>
</logic:present>

</body>
</html>
---< cut >---

-mark.

-- 
View this message in context: 
http://www.nabble.com/Struts-1.x-and-Tomcat-5-problem-tf3812184.html#a10792360
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to