• Post Reply Bookmark Topic Watch Topic
  • New Topic

tlib version in tld for custom tags  RSS feed

 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a question on the tlibversion attribute of the tld files used for developing custom tags.Say I am writing a taghandler class for a custom tag using tag extension api,what should this parameter value be?I can know the jsp version but from where will I get this?
 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out your Server Documentation for Supported versions of Servlet,JSP,TLD(it should be 1.0/1.1 but to be safe check it),EJB(if app server)

Shrinivas
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66158
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Renu Radhika:
what should this parameter value be?


Anything you want it to be. This value is the version number of your tag library.
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean tag extension API version.Because I am creating the Custom taglibrary,So how Can I decide the version?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66158
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start with "1.0" and work your way up.
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is that parameter specifying the version of the JSTL,if we are extending any of the JSTL taglibrary classes in our custom tag handler implementation?Thats what I could make out by reading the docs?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66158
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Renu Radhika:
Is that parameter specifying the version of the JSTL


No. Once again, that value is for you to specify the version level of your tag library. You could use a numbering scheme like "1.0" or "1.0.0" or anything else that you would like to denote the revision level of the library you are defining within the tld. The point is, it doesn't matter what you put in there. You could put "askjdhskjdhskjdhskaj" if you wanted.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!