aspose file tools
The moose likes JSP and the fly likes Prefix Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Prefix" Watch "Prefix" New topic
Author

Prefix

rakesh sugirtharaj
Ranch Hand

Joined: Dec 16, 2007
Posts: 151
What is the need for prefix in custom tags?


Cheers!
RSR
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56232
    
  13

It is the means by which tags are associated with the specific library within which they are defined.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

It is used to identity a library within a page. When you use a tag, you want to tell from which library it comes from. Imagine a scenario where you have two tags with the same name, but from from two different libraries. You need something to tell which tag is from which library, and that's what the prefix is for.



[My Blog]
All roads lead to JavaRanch
rakesh sugirtharaj
Ranch Hand

Joined: Dec 16, 2007
Posts: 151
Yup! Now i get it. Thanks.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Prefix
 
Similar Threads
Tomcat example jsp working. Example servlet not working
how to assign my function to onclick
Dojo + Struts ?
Change Namespace for Axis2
Error in validating xml file which has schema