• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

JSTL database access

 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am reading on JSTL datbase access. Seems to use example one needs to type on top everytime:
uri="http://java.sun.com/jstl/ea/core"
uri="http://java.sun.com/jstl/ea/sql " etc.

I was windering why it should be like this? I should be able to install
jar files and work with JSTL tags. What is better? I guess if tomorrow sun moves above links then applications will crash.

How to get rid of these external dependents/
 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Indirect access.Decalare it in the web.xml in the <taglib> tag
<taglib-uri>/-----------</taglib-uri>use this in the jsp
<taglib-location>/WEB-INF/--------------</taglib-location>physical location
[ June 02, 2005: Message edited by: Mcgill Smith ]
 
Sheriff
Posts: 67664
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
I would not define these in web.xml.

Those are URI's not actual URL's. They don't actually point to anything, so there's nothing that can be moved to "break" the pages.

The JSTL URI's are just strings, that happen to have been defined to look like URL's, that uniquely identify the tag libraries.

Btw, those are not the standard JSTL URI's. I'd be sure to use those defined by the standard.
 
Raj Puri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. I was looking at down loading jar files from sun that has code covered by these URI's and including them in our web server lib.What is more standard way for production applications to use URI point to http:// given in books or installing them on webserver??? In my past I have not used them but read about them and am not sure which way to use them.To me
include them as URI is still a round trip outside our intranet so definetly not so good.
 
Bear Bibeault
Sheriff
Posts: 67664
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

To me include them as URI is still a round trip outside our intranet so definetly not so good.



No no no. There is no round trip. The URI is not a URL that accesses anything. It's just a string that is used to match up the prefix you specify in the taglib directive with a tld file (probably in a jar file) on your server.
 
But how did the elephant get like that? What did you do? I think all we can do now is read this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic