This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to use a custom tag lib in a JS script? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to use a custom tag lib in a JS script?" Watch "How to use a custom tag lib in a JS script?" New topic
Author

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

Praful Gupta
Ranch Hand

Joined: May 01, 2006
Posts: 70
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

Joined: Jan 10, 2002
Posts: 60755
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: How to use a custom tag lib in a JS script?
 
Similar Threads
Calling constants from another file in JS
Code size is too large for try catch statement in JSP
javascript include issue
Struts1.2 Equals Tag Problem
Generating <script> tag from Custom JSF Tag