Im having issue with my html code. It works on every web browser except IE 7. Can somebody help me understand why. I am knew to html but experienced in Java. The code below is a excerpt from my JSP. Any help is greatly appreciated. I posted this once and everyone tore me apart. Please bear with me. Thankyou to any one who can help.
-The issue is that the html appears in other browsers but IE returns an empty page.
<html>
<%@include file = "../common/emxUIConstantsInclude.inc"%>
<form name=LocationSelectionForm method="post">
<table width="100%" border="0" cellpadding="3" cellspacing="3">
<tr>
<th nowrap> <%=header%></th>
</tr>
<tr> </tr>
<%
int i = 0;
Iterator locationItr = locations.iterator();
while (locationItr.hasNext()){
String loc = (String) locationItr.next();
%>
<tr>
<td nowrap="nowrap">
<%
if (currentLocation!=null && loc.equals(currentLocation)){
%>
<input type="radio" name="location" value="<%=loc%>" checked> <%=loc%>
<%
} else {
%>
<input type="radio" name="location" value="<%=loc%>"> <%=loc%>
<%
}
%>
</td>
</tr>
<%
i++;
}
%>
</table>
</form>
<script language="javascript" type="text/javaScript">//<![CDATA[
<!-- hide JavaScript from non-JavaScript browsers
function setLocation(){
form = document.LocationSelectionForm;
form.action = "MERPLocationContextProcess.jsp";
form.submit();
}
//Stop hiding here -->//]]>
</script>
</html>
Fixed: I needed to add
<body>&</body>statements: