Crazy IE / DNS error
447980Feb 17 2006 — edited Feb 17 2006Greetings
I have a jsp page that contains a table. This table is about 24 columns in some "cells" there are text labels. In some cells there are numbers. I have a Collection (ArrayList) of DTO's in session and I use an iterator tag to run through them and display each DTO using bean: write tags.
Pretty straight forward, works perfect in Firefox. My boss ran it in IE and there was a problem.
You start out on a launch page where you type in a batchID (what you want to display). Then click on submit and it loads up the collection and sends you to main.jsp. In ie instead of main.jsp coming up it give a DNS error. This happens both on the server and when run locally.
I took main.jsp apart and added back items one column at a time until the error reappeared. I use many statements like the following throughout the code:
<fmt:formatNumber type="number" pattern="###,###,###">
<bean:write name="line" property="tier2MonthlyRate" />
</fmt:formatNumber>
and it seems to work perfectly. When I got to the last 2 columns I started getting the DNS error. The last 2 columns as I wrote them are:
<td><fmt:formatNumber type="number" pattern="###,###,###"><bean:write name="line" property="psTier1Increment" /></fmt:formatNumber></td>
<td><fmt:formatNumber type="number" pattern="###,###,###"><bean:write name="line" property="psTier2Increment" /></fmt:formatNumber></td>
These cause an error only in IE and it is a DNS error.
I rewrote them as:
<bean:define id="psTier1Increment" name="line" property="psTier1Increment"></bean:define>
<bean:define id="psTier2Increment" name="line" property="psTier2Increment"></bean:define>
<%
DecimalFormat myFormatter = new DecimalFormat("###,###");
String output1 = myFormatter.format(psTier1Increment);
String output2 = myFormatter.format(psTier2Increment);
%>
<%=output1%>
</td>
<td>
<%=output2%>
</td>
And it works.
Has anyone heard of anything similar to this or can anyone point me in any direction?
there are NO errors in my OC4J window, and I am on 10.1.2
This is really frustrating and I HATE having this ugly code to format these last 2 numbers.
Thanks
Troy