Forums Register Login

jstl and View data problem

+Pie Number of slices to send: Send
hi

i am new in JSTL i have follow example in JSTL package but i can insert into DB but when try to retrive data i got empty Table
i am using jakarta-taglibs-standard-1.1.2

this my page
<sql:setDataSource var="example" driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/test" user="root" password="123456"/>

<sql:transaction dataSource="${example}">


<sql:update var="update">
INSERT INTO user (email,password)VALUES ('sdasd@sdasd','asdsdasd')
</sql:update>


<sql:query var="deejays">
SELECT * FROM user
</sql:query>

</sql:transaction>

///////////////////////////////this view nothing
<table>
<c:forEach var="Row" begin="0" items="${deejays.rowsByIndex}">

<td> <c:out value="${deejays.rowsByIndex[0][0]}" /></td>

</c:forEach>

</table

</body>
</html>
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1045 times.
Similar Threads
Tomcat 5.0.16 SQL JSLT not working
jdbc connection in jsp
problem with JSTL
javax.el.PropertyNotFoundException: Property 'empname' not found on type java.lang.String
JSTL sql tag
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:31:56.