Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jstl and View data problem  RSS feed

Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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:query var="deejays">


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

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



  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!