displaying data from database to webpage

i am having problems displaying data from a database.

when i run my application and call my jsp file to display
data i still receive the static content

below is my .jsp file

<%

.
.
.
 
  int privCtr = 0;
  ArrayList appList = um.getApplications();
  ArrayList reportList = um.getUserPrivilgeReport(employee);
  ArrayList activityList = access.getActivities();
 
%>

<html>

  <head>
  <Title>test page</Title>
  </head>
 
  <body>
   
    <Table border="1" width="100%" cellspacing="0" cellpadding="1">
      <TR>
        <TH>&nbsp;</TH>
      <%

out.println(reportList);// this is the dynamic data that i want to see in table format -- this works

      for (int i = 1; i < appList.size(); i+= 2)
      {%>
        <TH><font size="1"> <%= appList.get(i) %> </font></TH>
      <%}%>
      </TR>
     
     <%
      for (int rowCtr = 0; rowCtr < activityList.size(); rowCtr++)
      {
        Activity activity = (Activity)activityList.get(rowCtr);
      %>
      <TR>
        <TD nowrap><font size="1"> <%= activity.getAcronym()+"-"+activity.getActivity() %> </font></TD>
      <%
      for (int applicationCtr = 0; applicationCtr < appList.size(); applicationCtr+= 2)
      {%>
        <TD align="center"><Font size="1">  N </Font></TD>
      <%}%>
      </TR>
    <%}%>  
   
    </Table>
   
  </body>
 
</html>

on this line of code when i run my application on the page i always see the N
in the cell blocks

<TD align="center"><Font size="1">  N </Font></TD>

could the above line be my problem
or is there something i am missing all together about displaying the data in the table????

any suggestions???

thanks in advance -- annie :)
annie613Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

annie613Author Commented:
for displaying i tried

<TD align="center"><Font size="1">  <%= privCtr %> </Font></TD>
but i end up with all 0's as it is initialized

i also tried this
<TD align="center"><Font size="1">  <%= reportList%> </Font></TD>
but this is still not correct

any suggestions???
rrzstudentCommented:
>any suggestions???  
use JSTL.
try

     <%
      for (int applicationCtr = 0; applicationCtr < appList.size(); applicationCtr+= 2)
        out.print("<TD align='center'><Font size='1'>" +  applicationCtr + "</Font></TD></TR>");
     
    %>  

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
annie613Author Commented:
that is all i needed :) cheers!!!!! rrz@871311
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.