• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

short-name and prefix

 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should the short-name tag in tld match with the prefix in taglib directive?
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

No, it's not a must.

The prefix can be anything you like.

Best regards ...
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So whats the significance of short-name element in TLD?
 
Aniket Patil
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

short-name a simple default short name that could be used by a JSP page
authoring tool to create names with a mnemonic value; for
example, the it may be used as the preferred prefix value in taglib
directives.

Please learn to use the Servlet and JSP Specifications.
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I guess the word preferred makes the difference.Its not mandatory but its preferred
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic