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

[424 byte] By [bunty_indiaa] at [2007-10-3 10:10:29]
# 1

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

cnu9440a at 2007-7-15 5:30:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
A neat and prof. way of doing this is to use DisplayTag and you are better off http://www.skillipedia.com
skillipediaa at 2007-7-15 5:30:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
but what about conditions?
bunty_indiaa at 2007-7-15 5:30:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

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.

AmitavaDeya at 2007-7-15 5:30:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

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

bunty_indiaa at 2007-7-15 5:30:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...