This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes jstl and View data problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jstl and View data problem" Watch "jstl and View data problem" New topic
Author

jstl and View data problem

hassan ali
Ranch Hand

Joined: Apr 23, 2006
Posts: 127
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> <cut value="${deejays.rowsByIndex[0][0]}" /></td>

</c:forEach>

</table

</body>
</html>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jstl and View data problem
 
Similar Threads
problem with JSTL
javax.el.PropertyNotFoundException: Property 'empname' not found on type java.lang.String
jdbc connection in jsp
Tomcat 5.0.16 SQL JSLT not working
JSTL sql tag