Dynamic Table with two columns
Hi!
i have to create a Dynamic Table with two columns having 5-5 links each with some text...... three links r based on certain conditions....they r visible only if condition is true...
if the links r not visible in this case another links take it's place & fill the cell.
links/text is coming from database.
i am using Struts with JSP IDE netbeans
Please help me
BuntyIndia
hi dude retrive the result set Object from bean class in Action class.then store the resultSet Object in request object then u forward to the jsp.then in jsp use following code,
ResltSet rs=(ResltSet)request.getAttribute(attribute name)
<table>
<%while(rs.next)
{
%>
<tr><td><%=link%></td><td><%=content%></td></tr>
<%
}
%>
</table>
try this code
In the first page use..
<form action="process.jsp" method="get">
....
and place <input name="Condition1" type="checkbox"> for ur conditions and submit button.
in "process.jsp" use request.getParameter("Condition1")
to get the condition state and display results accordingly.
i wanna do something like this
<div class="box_d box_margin_right">
<ul class="anchor-bullet">
<c:forEach items="${data.faqList}" var="item" varStatus="status"
begin="0" end="${data.faqListSize/2-1}">
<li>${item}</li>
</c:forEach>
</ul>
</div>
<div class="box_d">
<ul class="anchor-bullet">
<c:forEach items="${data.faqList}" var="item" varStatus="status"
begin="${data.faqListSize/2}" end="${data.faqListSize}">
<li>${item}</li>
</c:forEach>
</ul>
</div>
wanna divide table in two columns....if one link got off due to condition other one take it's position...
I have created a textorderedlist
Bunty