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

jsp tag library

 
Syed Saifuddin
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody

What is the special use of this tag <jsp:root>. I get the following statement in my new project written in each jsp file.


<jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:cms="urn:jsptld:cms-taglib" xmlns:cmsu="urn:jsptld:cms-util-taglib" xmlns:c="urn:jsptld:http://java.sun.com/jsp/jstl/core">

if anybody can help me.

Thank You
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jsp:root is used to identify JSP Documents, which means that the file must comply with the XML syntax.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that your root is declaring three taglib namespaces :
"cms" is associated to "cms-taglib",
"cmsu" is associated to "cms-util-taglib"
and "c" is associated to "http://java.sun.com/jsp/jstl/core"

So you can use those three libraries' tags in the jsp document.
 
Syed Saifuddin
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You

I understand a bit but need more clearance I mean when we use <anything: >
anything must be a taglib define earlier. But here no jsp as a tag ia define.

Thank You
Syed Saifuddin
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The jsp actions are pre-defined.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic