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
1
vote
0 answers

NLS missing message: CANNOT_FIND_FACELET_TAGLIB in custom tag

I write a custom tag with JSF 2.0. And use it in my page. When declare it, show the following warning. NLS missing message: CANNOT_FIND_FACELET_TAGLIB in:org.eclipse.jst.jsf.core.validation.internal.facelet.messages I need to disable it. So, I…
R.Katnaan
  • 2,486
  • 4
  • 24
  • 36
1
vote
2 answers

Get a custom tag (containing colon) value using jquery

I have one custom tag. I want to set value to that custom tag using jquery. Though it look a silly question i spent more time in searching result for that. My tag is
Monicka Akilan
  • 1,501
  • 5
  • 19
  • 42
1
vote
1 answer

Get Custom Tag Name of JSP TLIB at doStartTag function

I need to get the name of requester tag at doStartTag function I have this Custom tag in .tld Resource Mirnint.Interface.Tag.MNIT_Resources JSP
1
vote
1 answer

PHP retrieve text value from custom tags with preg_match

Hi people I have searched the php website for a fast and simple solution, I searched also on google but nothing that I find seams to work. preg_match("/\[video-code\](.*?)\[\/video-code\]/", the_content(), $match); echo "result=".$match[1]; I am…
Iason
  • 372
  • 1
  • 5
  • 20
1
vote
1 answer

xml.tag! in Ruby on Rails 3 linking

I am trying to create an xml.builder file that puts links into cells that I am then using a javascript library to render into a table. Basically I'd like to make the following item a link. xml.tag!("cell", person.name) something like this.…
capcode01
  • 163
  • 1
  • 15
1
vote
1 answer

Custom Tags Support with Java EE

Given the following HTML in a Java EE environment: I would expect ServletRequest.getParameterNames() would include foo. However given for example: I would hopefully expect…
Tony Day
  • 2,170
  • 19
  • 25
1
vote
0 answers

tinyMCE Editor removes custom tags in div elements

I need to add some custom tags into tinyMCE. It's ok if they are in body tag alone, but if I put them into the div tags then editor removes it. Here is the example: I need to add "unsubthis" tag, so I've got this configuration file
user1431544
  • 155
  • 1
  • 2
  • 8
1
vote
1 answer

How to call a JSP tag within a POJO

I have a Java Bean used in a I put in this Pojo things that I need: like the request, the response .. so I can include another jsp with RequestDispatcher. What I need to do is to include…
Cosmin Cosmin
  • 1,526
  • 1
  • 16
  • 34
1
vote
1 answer

Why won't my Facelets loop variable go out of scope?

I know this looks like a lot of text, but I think it's a pretty simple concept I'm missing. I'm writing a web application with Facelets. I've got a custom tag rq:request-list that takes a list of requests as a parameter and outputs a lovely table…
Nick
  • 2,827
  • 4
  • 29
  • 39
0
votes
1 answer

jsf pass new request relationship bean object to session bean not working using custom tag

In my application I have a relationship between cities (A) and postalcodes (B). So I have two SelectOneMenu's where the first represents A's and the second represents the B's of the selected A which are updated via ajax. Since I use these two menu's…
djmj
  • 5,579
  • 5
  • 54
  • 92
0
votes
1 answer

jstl custom tag questions - ignore of c:out, tag parameters and reduce code

I am using jstl in order to create custom tag. Here is the content of location.tag: <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@ attribute name="id"…
Naor
  • 23,465
  • 48
  • 152
  • 268
0
votes
1 answer

How can i implement a open graph (http://ogp.me/) to use my custom tags in another website?

I've reviewed http://ogp.me/ but couldn't find a solution. What I want to do is: defining a xmlns like: set up an id for that website like: and use that tags as a…
0
votes
0 answers

Using together JSTL forEach tag and custom JSP-based tag

I am implementing paging support using custom tag. I decided to use JSP-based tag because there is more formatting than any heavy logic. But this is not the main story. The trouble is that JSTL forEach simply doesn't work at my .tag file and throws…
Dmitry Kankalovich
  • 553
  • 2
  • 8
  • 19
0
votes
2 answers

Create custom tag for validator in JSF

I have created a custom validator for my JSF project. I can use it like this: I need to create a custom tag for it,…
Ove
  • 6,227
  • 2
  • 39
  • 68
0
votes
1 answer

Reuseable component/tag in Struts2 projects

I am using struts in my projects. I have an idea to create a reusable component (May be tag or plugin, not sure) which can be used on different pages within same website or it can be imported in new website (projects) later. Like I want to show poll…
1 2 3
8 9