Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Retrive values from an arraylist and display in a jsp

Thread view: 
Deepa - 31 Jul 2006 07:43 GMT
Hi,

I need help in jsp to display values of an arraylist in jsp.

There is a java file containing a method which is returning an
arraylist.

I want to display the record of arrayList in jsp in tabular form say 10
records.

can anyone help me on this.

Thanks in advance.
Deepa
hiwa - 31 Jul 2006 08:06 GMT
Deepa のメッセージ:

> Hi,
>
[quoted text clipped - 10 lines]
> Thanks in advance.
> Deepa
Is is like this? :
<TD><%= arrayList.get(n) %></TD>
Deepa - 31 Jul 2006 09:59 GMT
I have added in arrayList like this

              retArrayList.add(rs.getString(5));
               log.debug("First name of terminated emp : " +
rs.getString(5));
               retArrayList.add(rs.getString(6));
               log.debug("Last name of terminated emp : " +
rs.getString(6));

say if there are 7 records then arrayList returning its size as 14 (7
for firstname and 7 for lastname). but according to me its size shod be
7.

> Deepa のメッセージ:
>
[quoted text clipped - 14 lines]
> Is is like this? :
> <TD><%= arrayList.get(n) %></TD>


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.