I have placed a <sql:wasEmpty> tag within a <sql:preparedStatement> tag, immediately following a <sql:resultSet> tag. If the resultset is, in fact, empty, the body of the <sql:wasEmpty> tag appears. However, immediately preceding this output, a digit (usually a "1") appears.
I haven't seen this problem yet. Which Servlet container exhibited this behaviour?
It worked for me too - besides, it might have been fixed with bug 26863