Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

&gt jsp:root &lt ??

 
Ranch Hand
Posts: 5390
1
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there
I have a small doubt regarding source at http://java.sun.com/products/jsp/tags/12/syntaxref123.html#997613
there in the example they used :
xmlns: public="http://www.jspcentral.com/tags";
it is suppose to Specify a tag library prefix and URI. (plz refer the above given SUN url)
here it also says that "URI uniquely locates the TLD that describes "
but in the example I am not able to see the taglib file name like mytaglib.tld.
How the URI will find the taglib file?
TIA
[ April 22, 2002: Message edited by: Carl Trusiak ]
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By matching up with the URI in the web.xml
 
R K Singh
Ranch Hand
Posts: 5390
1
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Carl
Thanks !!
Now I have a question if this is the case then what is the need of providing URL ? AW this can be refered by web.xml.
TIA
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ravish Kumar:
[...] AW this can be refered by web.xml.

[ deleted some nonsense see Madhav's reply below ]
- Peter
[ April 23, 2002: Message edited by: Peter den Haan ]
 
R K Singh
Ranch Hand
Posts: 5390
1
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Peter den Haan:
True, but an XML parser would know nothing about that.


so it means that JSP files written in this fashion will have extension .xml and will be used only for Parsing and as told in newsPaper of Ranch for "documentation"

CMIW
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so it means that JSP files written in this fashion will have extension .xml
Maybe I am missing something, but I don't think the abv stmt is not correct.
The JSP file will have extension .jsp. Due to the <jsp:root> element, the parser kicks-in and does its thing...
- madhav
[ April 23, 2002: Message edited by: Madhav Lakkapragada ]
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, please (re)read Chapter JSP.5 and specifically JSP.5.2.2.
It explains everuthing about the xmlns tag.
Good luck.
- madhav
 
Can you smell this for me? I think this tiny ad smells like blueberry pie!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic