• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tag library Q

 
Kedar Dravid
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Can a single .tld file contain multiple <taglib> elements?
2) Can a single <taglib> element contain multiple <tag> elements?

My guess:
1) No
2) Yes

Please confirm.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think you are correct. There is no need of multiple <taglib> entires in single .tld. It is like <web-app> for web application.

Thanks
 
sarvesh khatri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Can a single .tld file contain multiple <taglib> elements?
NO, XML documents form a tree and there is a unique root element.

2) Can a single <taglib> element contain multiple <tag> elements?
YES, see the default tld provided with struts like struts-bean.tld etc
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic