Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use a custom tag lib in a JS script?

 
Praful Gupta
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone show me an example of using a custom tag lib inside a JS script? We have some custom tag libraries already in use and wanted to use them in some JS scripts. Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64972
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say "custom tag lib" are you talking about JSP tag libraries, or something else?

If so, then there's no difference than using any other JSP mechanism. Remember that JSP is evaluated on the server to substitute any active elements in order to send a good old fashioned HTML page to the browser. The result of any custom tags will simply be substituted into the page and the result will be sent to the browser.

If this isn't clear, you might find this article helpful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic