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
2
votes
1 answer
Duplicated ID on JSF custom tag when nesting tags
I'm migrating some composites to custom tags because of performance issues. When using composites all Ids are properly generated, but when using custom tags I'm having the duplicated Id Exception, even I created a custom EL expression for generating…

pestades
- 21
- 3
2
votes
1 answer
JSP custom or JSTL tag inside another custom tag
I have made a custom tag, to verify some user session state. But, is not working in my custom tag body. JSP:
">Logout
<-- THIS JUST FLUSHES…

Kinga Odecka
- 387
- 4
- 13
2
votes
0 answers
Struts custom tag
Good evening!
I'm using Struts 1x
I want to write custom tag, which depends on data, stored in struts form. Now I have such code:
How to declare a custom jsp tag with required HashMap
…

bsiamionau
- 8,099
- 4
- 46
- 73
2
votes
2 answers
Attributes scope vs attributes structure
Custom tags have an attributes scope. Cool.
I've also seen some other apps (and possibly ColdBox?) where the developer put everything into an attributes structure. For example in login.cfm:

genericHCU
- 4,394
- 2
- 22
- 34
2
votes
2 answers
How to declare a custom jsp tag with required HashMap?
In my class, I need a HashMap. How to declare this in tld?
map
true
true
java.util.HashMap
…

Falci
- 1,823
- 4
- 29
- 54
2
votes
3 answers
Undefined error when using CFThread in Custom Tags in ColdFusion 10
NOTE: I have completely rewritten this question to take into account new information. Please reread if you've already been through this one.
I'm getting errors when using a cfthread from within a custom tag in ColdFusion 10. In the Application log,…

Dan Short
- 9,598
- 2
- 28
- 53
2
votes
0 answers
Parsing custom HTML tags
I have custom tags like this:
Some content here
I'm trying to find all the tags with this pattern:
.*
And it's working.
But, If I have…

Alisher
- 59
- 6
2
votes
1 answer
Adjust XML output in GraphML
Do you think I can adjust the xml output from GraphML?
In the GraphML wiki the tags seem to be fixed:
I saw that you…

myborobudur
- 4,385
- 8
- 40
- 61
2
votes
1 answer
JSF custom tag wrapper dynamic parameters
I am trying to create a custom tag that will act as a wrapper to standard components and will define values for some common attributes
For example the custom tag will look like this

dimcookies
- 1,930
- 7
- 31
- 37
1
vote
5 answers
JSP Custom Tags: Is it possible to have a more than start / close tags?
After using the Django template language, I really miss being able to do things like this:
{% if condition %}
{% else %}
{% endif %}
When I am using JSP, I am stuck doing something like this:

TM.
- 108,298
- 33
- 122
- 127
1
vote
1 answer
Using Custom Tags and JSP with AJAX functionality
I am developing a simple web application in which a web page accept a value from user through textfield and passes it to the custom tag which process that input string and prints the output
code is as follows
Index.jsp
1
vote
1 answer
Using helpers (or render partials) from custom RedCloth tags
I'm trying to call a view helper from a custom RedCloth tag and am having absolutely no luck at all. All of the examples I can find have the custom tag method create and return a literal string without calling any other method at all.
I am trying…

Oliver
- 191
- 1
- 1
- 8
1
vote
1 answer
JSP custom tag ClassNotFoundException
I'm trying to use the following class in a JSP-based custom tag:
public class HelloWorldTest {
public void hello1() { }
}
The tag file is in WEB-INF/tags/hello.tag:
<%@ tag language="java" pageEncoding="ISO-8859-1" %>
<% HelloWorldTest hello;…

Alex
- 329
- 2
- 17
1
vote
1 answer
How to extend UISelectOne component for enum property to automatically populate all enum values as select items?
I want to use simplified select one tag, which would generate select items list for enums automatically. So, the result would be:
So, inside the component I can get the enum type and get all enum…

bitec
- 606
- 1
- 11
- 23
1
vote
2 answers
How do i avoid generating html in a java custom tag handler?
Every example i can find has the tag handler java class generating html and spewing it out with out.print(someHTML);
Is there a way to include a jsp and add attributes to the request instead?

blank
- 17,852
- 20
- 105
- 159