I have multiple JSPs that each contain one or more tables.
<table class="foo"> <tr> <td>stuff</td> <td>stuff2</td> </tr> </table>
<table class="foo"> <tr> <td>more stuff</td> <td>more stuff2</td> </tr> </table> <table class="bar"> <tr> <td>whatever</td> </tr> </table>
They are used by wrappers in different configurations:
<s:include value="fragment1.jsp" /> <s:include value="fragment2.jsp" />
<s:include value="fragment2.jsp" />
fragment2.jsp comes after
fragment1.jsp, I want these two tables to have no margin between them and appear as one table. However, if either one is alone, I want them to be formatted normally as
"foo" tables are styled.
Is there a way to indicate this styling preference in some way such that the two
"foo" tables will appear as a single table when adjacent, but otherwise style themselves normally?
I am somewhat new to Struts/JSP and dealing with some kludged legacy code, so please help me understand if this problem would be better solved through another approach.