JSP includes and Browser compatibility issue

Hi All,

I have created a Jsp application. Almost all jsp's have the following structure:

<%@ include file="init.jsp" %>

<table>

<tr><td><%@ include file="head.jsp" %></td></tr>

// some code

<tr>

<td><%@ include file="navigation.jsp" %></td>

<td><%@ include file="body1.jsp" %></td>

</tr>

<tr><td><%@ include file="footer.jsp" %></td></tr>

<%@ include file="end.jsp" %>

The application works fine in IE6. But the layout is disturbed in firefox and opera.

How can I make my application browser neutral.

Thanks.

[907 byte] By [arunkumar504a] at [2007-11-26 16:32:21]
# 1

HTML is browser dependent, your best bet is to create *valid* html, to make your html as cross-browser compatible as possible.

The table structure you have is incorrect, the first <tr> tag has only one <td> tag, but the second <tr> has two <td> tags.

Use the colspan="2" attribute on the single td tag.

Change your html to something like this:

<table>

<tr>

<td colspan="2"> ..........</td>

</tr>

and so on...

appy77a at 2007-7-8 22:56:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...