Questions tagged [custom-tag]

Custom tags are user defined tags. They eliminate the possibility of scriptlet tag and separates the business logic from JSP page and makes it reusable.Some examples of tasks that can be performed by custom tags include operating on implicit objects, processing forms, accessing databases and other enterprise services such as email and directories, and implementing flow control. Custom tags increase productivity because they can be reused in more than one application.

References:

  1. Custom tags in JSP - Oracle.
  2. IBM tutorial on Custom tag for JSP.
126 questions
0
votes
1 answer

Need for custom tags in JSF and JSTL/El

Why do we need to use custom tags in JSF and JSTL/EL even though there are sufficient in-built tags (HTML or otherwise) are provided? What are the applications and usages of them?
Bhavesh
  • 4,607
  • 13
  • 43
  • 70
0
votes
2 answers

custom html tag as img tag - image not displayed

i have a blog where i wanted to create a subsite listing my fav apps. for code consistency and for not confusing between existing html "normal" code describing website i made my own "subhtml" just for app cards. for now best i did to this code was…
hacknorris
  • 39
  • 6
0
votes
3 answers

Defining your own JSP tag body

Recently I've decided to get some knowledge about writing custom tags. And there is a problem. In my web app I use some JSTL tags and in every JSP page I have got an identical piece of code:
Dmitry Kankalovich
  • 553
  • 2
  • 8
  • 19
0
votes
0 answers

JSP custom tag cannot complie

//TODO I have a custom tag in jsp file. When run with Web Server of IBM in Eclipse, jsp…
pes
  • 13
  • 4
0
votes
1 answer

Custom tag to set a variable in Django template. Emptying the value out of context?

In my Django Template I want to set a variable, to use in a html tag. But, when I'm out the for loop, the variable is empty :( {% load custom_template_tag %}