• Post Reply Bookmark Topic Watch Topic
  • New Topic

[solved] JSTL SQL column access w/o iterating?  RSS feed

 
Tudor Raneti
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to be able to write something like this:


is it possible? The above doesn't work.

EDIT1: Answer (long live reading the source):

means:
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just out of curiosity, why are you using SQL tags?
 
Tudor Raneti
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I came upon a self-convention that when i only display small amounts of data that involve the database i shouldn't increase the complexity of the site by adding an extra bean, DAO, xml mapping (if hibernate) etc.

All i needed to write was:


and use it like:


could be even less if i move the data source inside the tomcat configuration.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!