The Artima Developer Community
Sponsored Link

Java Buzz Forum
SQL tags in JSTL

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Andrej Koelewijn

Posts: 594
Nickname: andrejk
Registered: Nov, 2002

Andrej Koelewijn is a Java and Oracle consultant
SQL tags in JSTL Posted: Nov 11, 2003 2:20 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Andrej Koelewijn.
Original Post: SQL tags in JSTL
Feed Title: Andrej Koelewijn
Feed URL: http://feeds.feedburner.com/AndrejKoelewijn
Feed Description: On Oracle, Java and OpenSource
Latest Java Buzz Posts
Latest Java Buzz Posts by Andrej Koelewijn
Latest Posts From Andrej Koelewijn

Advertisement

First time i looked at the java standard tag library, i wondered what the use was of the sql tags. You shouldn't really be using these in any serious web application, as they don't really follow MVC. SQL statements belong in DAO's, OR-mappers, EJB's or maybe in Struts actions but not in a jsp page.

However, recently i've started using them and they turn out to be really useful. I'm doing quite a lot of batch related oracle work, run large jobs, with no good ui to monitor what's going on. So i have a lot of queries, usually embedded in shell scripts, which will show me what's going on.

Now with these sql tags, you can just copy past all your sql scripts in a jsp page. Takes less than five minutes, no need to write java classes, no need to start a java ide. Now you can view the output of your sql scripts in a browser.

Having your sql scripts produce html helps because it's easier to navigate between different scripts. No need to run one query, find the relevant id's and then run a different query with the id's you just found. And you can just copy past the url of the output when instant messaging with collegues.

Read: SQL tags in JSTL

Topic: Hello Panther Previous Topic   Next Topic Topic: Bye bye Jaguar

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use