:S Friends. I want an table with one row of height 200px and another row with relative height of the table or expandable height in JSP page.

Is it possible to create like it?

I want an solution. I am badly in need of help.


Thanks in Advance.

Recommended Answers

All 5 Replies

:)
Following is an JSP Code, which i used,

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix="c"%>
<tiles:importAttribute name="adminMen"/>
<tiles:useAttribute name="tabId" classname="java.lang.String"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
	<table border="0px" width="100%" cellpadding="0px" cellspacing="0px" style="background-color:#D0DAA9;">		
		<tr>
			<td class="cont" valign="top" width="3%" align="left">
				<table cellpadding="0px" cellspacing="0px" border="0px" align="left">
					<tr>
						<td>
							<table id="T1" cellpadding="0px" cellspacing="0px" border="0px" align="left" height="185px">
							<tr>
								<td class="borderLeft cont" height="2px">&nbsp;</td>
							</tr>
							<logic:iterate id="tab" name="adminMen" type="org.apache.struts.tiles.beans.MenuItem" indexId="counter">
								<logic:equal name="counter" value="<%=tabId%>">
									<tr>
										<td height="30px" class="cont">&nbsp;</td>
									</tr>
								</logic:equal>
								<logic:notEqual name="counter" value="<%=tabId%>" >
									<tr>
										<td class="borderLeft cont" height="30px">&nbsp;</td>
									</tr>
								</logic:notEqual>
							</logic:iterate>
							</table>
						</td>
					</tr>	
					<tr>
						<td height="100%">
							<table id="T2" cellpadding="0px" cellspacing="0px" border="0px" height="100%" class="borderLeft">
								<tr>
									<td>&nbsp;</td>
								</tr>
							</table>		
						</td>
					</tr>			
				</table>			
			</td>
			<td class="cont">
				<table id="T3" width="97%" cellpadding="10px" cellspacing="10px" align="left">
				<tr>
				<td align="left" valign="middle" class="info" style="font-variant: small-caps">
	                 Development in progress
				</td>
				</tr>
				<tr>
				<td align="left" valign="middle" class="info" style="font-variant: small-caps">
	                 Development in progress
				</td>
				</tr>
				<tr>
				<td align="left" valign="middle" class="info" style="font-variant: small-caps">
	                 Development in progress
				</td>
				</tr>
				<tr>
				<td align="left" valign="middle" class="info" style="font-variant: small-caps">
	                 Development in progress
				</td>
				</tr>
				</table>
			</td>
		</tr>
	</table>				            				
</body>
</html>

I want an Table T2 height is to be expanded whenever Table T3 expands. Thanks in Advance.

Well, why is there no "width" parameter in the "t2" declaration to match the one in the "t3" declaration?

@vinothkumarrvk your two posts been merged. In the future please make sure that you not start new thread on same topic as it is against this forum rules.

Do not flood the forum by posting the same question more than once (ie in multiple forums).

If you have any additional info you want to share or any progress with given problem please reply to original post and provide this info

Well, why is there no "width" parameter in the "t2" declaration to match the one in the "t3" declaration?

Eventhough i included width attribute with 100%, it wont shows any difference.

Ach! I read width, you're worried about height. No, not that the HTML does it itself. You will have to determine the "heights" beofre hand and set the row height attribute on each table row individually.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.