This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes JSTL sql:query tag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "JSTL sql:query tag" Watch "JSTL sql:query tag" New topic
Author

JSTL sql:query tag

C Vivek
Ranch Hand

Joined: Oct 03, 2004
Posts: 115
Hi Guys

If I use sql tags in my JSP, am I adhering to MVC design pattern? Shouldnt these tags be deprecated?

Thanks
Vivek
[ July 04, 2007: Message edited by: C Vivek ]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

They sure smell bad, but I'm not sure there's a way to indicate that a tag is deprecated anyway. If you use a deprecated java class, you'll be warned, but for a tag, somebody is going to tell you "hey, why are you using that old crap?" ;) I think you are right to say that they should be avoided, but I don't think there's any effective way to prevent their use.


[My Blog]
All roads lead to JavaRanch
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by C Vivek:
Hi Guys

If I use sql tags in my JSP, am I adhering to MVC design pattern? Shouldnt these tags be deprecated?

Thanks
Vivek

[ July 04, 2007: Message edited by: C Vivek ]


No, and Yes respectively.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

Even the JSTL Spec itself says not to use them for anything "real". Makes you wonder why they were concocted in the first place.

They should be avoided like a mouth-foaming junkyard dog.

P.S. Good job in recognizing that these tags don't fit modern best practices and raising your question! :thumb:
[ July 04, 2007: Message edited by: Bear Bibeault ]

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL sql:query tag
 
Similar Threads
Marcus
Few tips
response.addHeader question.
How to set JSESSIONID's maxAge?
Need help in XML & XSL