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
2 answers

Custom tags creating custom tags

I'm trying to create a custom tag that uses other custom tags. My approach was like so: public int doAfterBody() throws JspTagException { BodyContent bc = getBodyContent(); if (bc!=null) { String body = bc.getString().toUpperCase(); …
icke
  • 1,568
  • 1
  • 19
  • 31
0
votes
1 answer

Jsp mimic a custom tag with jsp:include?

My applications have previously used jsp 2.0 custom tags extensively. We preferred these over jsp:includes because we didn't have to manually set objects into request scope. However the custom tags have one major limitation for us, which is not…
ant-depalma
  • 2,006
  • 4
  • 26
  • 34
0
votes
1 answer

How to create a custom URI to a custom tag (taglib)

I have a project "lib" with classes that are common to other projects. In the project "guestbook" I want to use the tags defined in lib.jar I think for that I need to create a URI for my custom tag, as the spring is: <%@ taglib…
Falci
  • 1,823
  • 4
  • 29
  • 54
0
votes
1 answer

Problem in Custom tag in JSP

Hi i have a custom tag in JSP
Rahul Garg
  • 8,410
  • 8
  • 33
  • 28
-1
votes
1 answer

Custom JSP Tag processor is caching a dated property, so the page shows old data and don't update, how to avoid this?

I made a custom jsp tag that search a historical value on a database an render it on the page. The attributes that the tag requires are the variable name and the date. The problem is that the 'date' property changes according clock move on ('date'…
Emiliano
  • 77
  • 6
-1
votes
2 answers

jsf conditionally set id

i have a custom tag and want to allow to set the id of an inner element
wutzebaer
  • 14,365
  • 19
  • 99
  • 170
1 2 3
8
9