• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSTL sql:query tag

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic