Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to pass <sql:query> results into variable  RSS feed

 
willsion lim
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for example if I have code like this:



then i can have ${host.hostName} value,

if i want to create a String <% String str= ...%> which includes it as a part, how can i do that.

thnx..
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just do not use scriptlets. It's a bad practice. Use Java classes, taglibs or EL.
Besides, do also not use JSTL SQL taglibrary. It is intented for quick test / prototyping. Use a DAO class.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!