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 <% } %>
在jsp中引用的
<ep:cmplinkarea name="la-action" xsl="/linkarea/button-h"/>那句话也没地方加阿
DEBUG: result has data
<ep:cmplinkarea name="la-action" xsl="/linkarea/button-h"/>
<% } else { %>
DEBUG: result has no data
<% } %>