Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-31-2008, 05:11 PM
Member
 
Join Date: Mar 2008
Posts: 1
irenavassilia is on a distinguished road
JSP to output Java String Array
Hi everyone,

I have a question regarding String Arrays and jsp output to html table:

Lets say I have the following output stored in a String Array:

String[] arr = new String[BookName,Date,Publisher,Rating,Author,Availability];

The six elements of this array get populated with data from an Access database. JSP doesnt have a problem accessing the array.
When I try to print the data from the array in html table format this is the output I always get:

book1 - this would be the BookName column
1/2/3 - the Date column
somename - the publishers column
3 - the rating column
vassil - the publisher column
Yes - the availability column
book2
1/2/3
somename
3
vassil
Yes and etc...

My question is how do I format this array to print in html table format in the following way.

i.e.:

book1 1/2/3 somename 3 vassil Yes
book2 1/2/3 somename 3 vassil Yes
book3 1/2/3 somename 3 vassil Yes
book4 1/2/3 somename 3 vassil Yes
book5 1/2/3 somename 3 vassil Yes
book6 1/2/3 somename 3 vassil Yes

Thank you.

Any help will be greatly appreaciated.

Regards,

Irena V.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
String []Array Warren New To Java 4 12-01-2007 09:03 AM
Help with string and array in java zoe New To Java 1 08-07-2007 07:12 AM
I can't seem to pass the value of a string variable into a string array mathias Java Applets 1 08-03-2007 11:52 AM
How i add string array in vector susan New To Java 1 07-16-2007 06:44 AM
Convert a vector to a string array orchid New To Java 2 05-06-2007 08:14 AM


All times are GMT +3. The time now is 10:50 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org