Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling custom tags from html

 
geet kaur
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we call custom tags from the html page?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
geet kaur
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
they have done it like this
and have set these attributes in the doTag() method

 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic