wood burning stoves 2.0*
The moose likes JSP and the fly likes jsp tag library Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp tag library" Watch "jsp tag library" New topic
Author

jsp tag library

Syed Saifuddin
Ranch Hand

Joined: Sep 01, 2003
Posts: 130
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


Thank You & Best Regards,

Syed Saifuddin,
Senior Software Engineer

SAP Oracle AIX & Java Training
http://www.socialinet.com
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

jsp:root is used to identify JSP Documents, which means that the file must comply with the XML syntax.


[My Blog]
All roads lead to JavaRanch
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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

Joined: Sep 01, 2003
Posts: 130
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

Joined: Jan 10, 2002
Posts: 61608
    
  67

The jsp actions are pre-defined.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp tag library