Hi am having a annoying issue.Look at the following code, In the code I have 2 links which appear based on conditions checked by the custom tag . The issue is when I see the HTML source of this page,the second anchor appears 700 lines(empty lines) after the first. Anyone pls help me solve this.Thanks in advance..
<a href="${contextPath}/rts/reports/listOfReports.do"> rts</a>
<s:userHasAccess functionId="<%=ReportsConstants.CFS_LOAD_PLANNING_FNCT_ID%>">
<jsp:attribute name="yes">
<a href="${contextPath}/lprt/reports/listOfReports.do">lprt</a>
The custom tag does a privilege check and return true or false.
update:
HTML Source:
<a href="/ptp/rts/reports/listOfReports.do"> rts</a> //700 blank lines
<a href="/ptp/lprt/reports/listOfReports.do">lprt</a>
This worked after adding the trim white space direcitve in the web.xml.