I like to get the line position from the actual JSP.
For example:
test.jsp
...
[...]
<tr>
<td class="FormAreaHorizontalPadder"></td>
<td>
<c:if test="${empty activeForm.testMessages}">
<no messages>
</c:if>
<c:forEach var="message" items="${activeForm.testMessagesConsumed}">
<c:out value="${message}" /><br />
</c:forEach>
</td>
</tr>
[...]
When the IfTag is called on "<c:if test="${empty activeForm.testMessages}">" i need in the tag class a information like "test:jsp 102" where 102 is the actual line in the jsp.
Particular i will use this at rendering time in the doStartTag() and doEndTag() Method in the Tag class.
Thanks