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.
Questions tagged [custom-tag]
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

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 %}

fabrice
- 1,399
- 1
- 15
- 27
0
votes
2 answers
I got the error "HtmlEncoderTag cannot be resolved to a type" on defining a custom tag?
I am defining a custom tag "htmlencoder". I have These files:
WEB-INF/classes/HtmlEncoderTag.jar ,with a java code like this:
import java.io.IOException;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyContent;
import…

Saeed
- 7,262
- 14
- 43
- 63
0
votes
1 answer
implementing a "window manager" for HTML in a JSP custom tag
I have a problem:
I need to build a custom tag, which can take its child tags (each of which will render as an HTML widget of some sort) and render them into the page in some intelligent manner.
It's a fairly open ended question, so I have thought…

mkoryak
- 57,086
- 61
- 201
- 257
0
votes
1 answer
I'm unable to create a custom tag in tomcat8 in ubuntu OS without unsing any IDE
I have to create custom tags to complete my project without using any IDE on ubuntu(Linux) but I'm repeteadly getting an error message.
To create custom tag I've made two files tagfileone.tag and tagfileonetest.jsp and their locations are as:
for…

VIKRAM
- 13
- 2
0
votes
1 answer
custom tag ckeditor error
Just started using ckeditor and got a little problem. On a button click outside the editor a tag is generated and then inserted into the ckeditor using the following code:
CKEDITOR.instances['pageContent'].insertHtml('

fl3x7
- 3,723
- 6
- 26
- 37
0
votes
1 answer
Django Custom Tag Filtering
Need a little help.
I have a news site, and what I'm trying to do is make a custom tag (it has to be a custom tag, part of my task) that will display the latest 3 news in a category. So let's say I click on a "health" article, the article opens,…

Sandi
- 117
- 11
0
votes
1 answer
Access attributes valueExpression in ManagedBean
I have a custom facelet tag which simply includes an outputText. Reason for using a custom tag is to modify the value depending on the entity field. For ex: if the outputText is used for a percentage value, I want to print the value with % without…

Cadrian Brown
- 23
- 5
0
votes
2 answers
Using a Custom Tag Variable from Outside of a Custom Tag
Ok, I thought this would be simple but I'm getting an error telling me the variable does not exist.
Here is my custom tag code:
Here is my…

timsayshey
- 211
- 1
- 2
- 14
0
votes
2 answers
Embedded custom-tag in dynamic content (nested tag) not rendering
Embedded custom-tag in dynamic content (nested tag) not rendering.
I have a page that pulls dynamic content from a javabean and passes the list of objects to a custom tag for processing into html. Within each object is a bunch of html to be output…

Doug Miller
- 1,316
- 4
- 24
- 46
0
votes
1 answer
JSView - Set trigger, when loses focus, on custom tag
I'm trying to define a custom tag for input-elements, which only trigger, when the input-element lost focus.
When it triggers, it should modify the data-linked item.
The data-manipulation is working onAfterChange.
//jsview html tag