不知是不是你想要的.
<% if ( result.getLength() != 0) { %>
  <button.....>
<% } %>

解决方案 »

  1.   

    好像不行啊
    在jsp中引用的
    <ep:cmplinkarea name="la-action" xsl="/linkarea/button-h"/>那句话也没地方加阿
      

  2.   

    Assume you are using "result" to store the query result. Otherwise you need to replace result with your onw variable name.See what will happen if you use the following code. Of course before the testing, you will remove the cached _..._jsp.class and .java, right?<% if ( result.getLength() != 0) { %>
       DEBUG: result has data
       <ep:cmplinkarea name="la-action" xsl="/linkarea/button-h"/>
    <% } else { %>
       DEBUG: result has no data
    <% } %>