Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL sql:query tag

 
C Vivek
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64975
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic