Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

&gt jsp:root &lt ??

 
R K Singh
Ranch Hand
Posts: 5384
  • 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 ]
 
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: 5384
  • 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
 
Peter den Haan
author
Ranch Hand
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: 5384
  • 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
 
Madhav Lakkapragada
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic