| 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
|
|
|
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
|
|
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]
|
 |
 |
|
|
subject: JSTL sql:query tag
|
|
|