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 11-15-2007, 11:47 AM
Member
 
Join Date: Aug 2007
Posts: 4
saurabh.joshi is on a distinguished road
How to access array stored in database through JSTL
Hi,

Can I use JSTL for accessing the array elements stored in the database column.
The Scenario is:
I have a user defined type SCORE_DATATYPE(SCORENUMARRAY integer[], SCORENATYPE character(2))
Score_Data is the column name where the SCORE_DATATYPE is stored.

My question is using JSTL can I access the array elements of SCORENUMARRAY in a drop down box?

__________________________________________________ ____________________________
I am using a similar type of code as following:
Quote:
<%@ include file="/html/common/init.jsp" %>


<sql:query dataSource="jdbcostgresql://10.10.33.39:5432/globus_db,org.postgresql.Driver,postgres,marines@1 23" sql="select

\"Array_Test\" from \"testing\" where \"test1\"=0" var="artists"/>

<table>

<c:forEach var="n" items="${artists.rows}"
varStatus="a">

<c:forEach var="item" items="${n}">
<tr>
<td><cut value="${item}"/></td>
</tr>
</c:forEach>

</c:forEach>

</table>
the output is: Array_Test={0,1,2,3}

not the elements of the array, actually the point here is that the var artists is taking the whole array as its value not the individual elements.
__________________________________________________ ______________________________

Please reply, your guidance is needed.

Thanks & Regards,
Saurabh Joshi.

Last edited by saurabh.joshi : 11-15-2007 at 02:18 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-19-2007, 02:46 AM
Member
 
Join Date: Nov 2007
Posts: 1
subra_28 is on a distinguished road
Hi
I joined this forum newly.
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
Stored Procedures geeta_ravikanti Database 1 04-22-2008 03:34 AM
Database "access" Sathish JavaServer Pages (JSP) and JSTL 2 03-29-2008 11:54 AM
Plz help ... retreiving data from an access database table.... austinsmiles New To Java 1 02-01-2008 02:21 PM
Upload excel data to access database ravikumar.achi New To Java 0 11-12-2007 02:52 PM
Help with access a database using Microsoft Access cachi Database 1 08-07-2007 08:51 AM


All times are GMT +3. The time now is 05:11 AM.


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