This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Calling custom tags from html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Calling custom tags from html" Watch "Calling custom tags from html" New topic
Author

Calling custom tags from html

geet kaur
Ranch Hand

Joined: Sep 03, 2008
Posts: 78
can we call custom tags from the html page?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
Assuming by "tag" you mean JSP tags, then the answer is no. JSP tags run on the server and emit HTML, which is then sent to the client. By the time the HTML is displayed in the browser, the tags have long since finished running.

What are you trying to accomplish?


Ping & DNS - my free Android networking tools app
geet kaur
Ranch Hand

Joined: Sep 03, 2008
Posts: 78
I was going through headfirst simple Tag Handlers topic,wherein they have called the tag from html,and in the doTag() method they have coded evrything.So i am actually not able to understand where that tag came from and how is it functioning.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
they have called the tag from html

I think you must have misunderstood something. Tags are embedded in JSP pages and create HTML, they are not called by HTML.
geet kaur
Ranch Hand

Joined: Sep 03, 2008
Posts: 78
they have done it like this
and have set these attributes in the doTag() method

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
While the code looks a bit mangled (could have been done by the forum software), it seems clear that it's a JSP tag, not an HTML tag. Maybe you can rephrase your question so that it's a bit clearer what you're asking?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling custom tags from html
 
Similar Threads
Process JSP Stream explicitly
Are custome tags useful?
extending existing tag libraries
So many alternatives. What are the problems with JSP?
Best Practices: JavaScript, CSS and Custom Tags?