Results 1 to 2 of 2
- 11-15-2007, 10:47 AM #1
Member
- Join Date
- Aug 2007
- Posts
- 4
- Rep Power
- 0
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:
the output is: Array_Test={0,1,2,3}<%@ include file="/html/common/init.jsp" %>
<sql:query dataSource="jdbc:postgresql://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><c:out value="${item}"/></td>
</tr>
</c:forEach>
</c:forEach>
</table>
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 01:18 PM.
- 11-19-2007, 01:46 AM #2
Member
- Join Date
- Nov 2007
- Posts
- 1
- Rep Power
- 0
Similar Threads
-
Upload excel data to access database
By ravikumar.achi in forum New To JavaReplies: 20Last Post: 01-19-2012, 11:30 AM -
Stored Procedures
By geeta_ravikanti in forum JDBCReplies: 1Last Post: 04-22-2008, 02:34 AM -
Database "access"
By Sathish in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 03-29-2008, 10:54 AM -
Plz help ... retreiving data from an access database table....
By austinsmiles in forum New To JavaReplies: 1Last Post: 02-01-2008, 01:21 PM -
Help with access a database using Microsoft Access
By cachi in forum JDBCReplies: 1Last Post: 08-07-2007, 07:51 AM


LinkBack URL
About LinkBacks

Bookmarks