Questions tagged [taglib]

TagLibs is a shortened form of "Tag Libraries". Tag Libraries are libraries that include "tags". Tags are usually used to address presentation concerns and encapsulate view-specific logic.

TagLibs is a shortened form of Tag Libraries. Tag Libraries are libraries that include tags. Tags are usually used to address presentation concerns and encapsulate view-specific logic.

Taglibs usually contain tags that encapsulate different kinds of view components (for example, data grids or form elements). These tags can also contain view-specific logic that allows for binding of server-side values to client-side form elements. Some taglibs also contain tags that can be used for logging or for security (authentication).

960 questions
74
votes
4 answers

Running CMake on Windows

I am currently trying to get CMake to run on my Windows 7 (64-bit) system. I want to compile TagLib for later use with a Qt application I am working on. I would like to compile it with MinGW (not Visual C++ as in this other question). I download the…
Joel Verhagen
  • 5,110
  • 4
  • 38
  • 47
61
votes
22 answers

Eclipse "cannot find the tag library descriptor" for custom tags (not JSTL!)

I have a Java EE project which build fine with Ant, deploys perfectly to JBoss, and runs without any trouble. This project includes a few custom tag libraries (which is not JSTL!), which are also working without any difficulties. The problem is with…
ryandenki
  • 1,859
  • 3
  • 19
  • 30
49
votes
2 answers

What are and used for?

I was working on custom tag libraries and I was confused how the and tags are used in the TLD file to define a custom tag attribute. What are these tags? What should we write in-between them? What behavior do we get after…
bali208
  • 2,257
  • 7
  • 40
  • 43
30
votes
9 answers

JSP: EL expression is not evaluated

I have a JSP page running on Tomcat 5.5. I have the following code:
The output I am getting is: ${i} ${i} ${i} ${i} ${i} ${i} ${i} ${i} ${i}…
James
30
votes
2 answers

Grails: Templates vs TagLibs.

In Grails, there are two mechanisms for modularity in the view layers: Template and TagLib. While I am writing my own Grails app, I am often facing the same question when I need to write an UI component: do I need to use a template or a TagLib?…
fabien7474
  • 16,300
  • 22
  • 96
  • 124
25
votes
1 answer

How to mention not of hasRole('ROLE_ADMIN') in spring security taglib

How would I write following condition using spring security taglib? <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
show these for only non admins…
Dileepa
  • 1,019
  • 1
  • 15
  • 40
22
votes
2 answers

Grails: Invoking one taglib from within another

I want to define my own taglib that will use the g:datePicker to generate some of it's output. class MyTagLib def myTag = {attrs -> // I need to invoke the `datePicker` tag of the the `FormTagLib` tag library // provided by Grails …
Dónal
  • 185,044
  • 174
  • 569
  • 824
21
votes
5 answers

Taglib for Android

I am trying to compile Taglib for Android. I have downloaded the latest version for Taglib from here . After compiling it for arm-linux build I have successfully imported it in my application, but when I try to call any function from tag_c.h I am…
ρяσѕρєя K
  • 132,198
  • 53
  • 198
  • 213
17
votes
3 answers

Taglib to display java.time.LocalDate formatted

I would like to display formatted java.time.LocalDate in my JSP. Do you know any taglib to use for this? For java.util.Date we were using <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>. Does something similar for java.time.LocalDate…
Piotr Pradzynski
  • 4,190
  • 5
  • 23
  • 43
16
votes
3 answers

What is a taglib?

Can someone explain what a taglib is in respect to Java programming? It contains a prefix and uri...but what do each of these refer to? I looked up a number of different websites but am frankly am still confused about what it is and what it does.
Daron
  • 329
  • 1
  • 4
  • 24
16
votes
10 answers

cannot load JSTL taglib within embedded Jetty server

I am writing a web application that runs within an embedded Jetty instance. When I attempt to execute a JSTL statement, I receive the following exception: org.apache.jasper.JasperException: /index.jsp(1,63) PWC6188: The absolute uri:…
user260513
16
votes
1 answer

How to show error message in liferay portal?

How to show error message in liferay portal? I read on liferay.com site that for show error message I can use liferay-ui:error tag from tag library, but it's not working, how to use it?
test1604
  • 620
  • 4
  • 12
  • 31
15
votes
3 answers

What does "INFO: TLD skipped. URI is already defined" mean?

When running my JSF 2 application in eclipse I am getting several info logs that TLD was skipped because it's already defined as follows: Jan 3, 2012 7:24:45 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI:…
Sameh Farahat
  • 1,703
  • 8
  • 22
  • 26
15
votes
8 answers

Concatenate strings in JSP EL?

I have a List of beans, each of which has a property which itself is a List of email addresses.
"> ... …
matt b
  • 138,234
  • 66
  • 282
  • 345
15
votes
3 answers

Grails link taglib use outside of GSP

I'm trying to use the taglib call there's attribute parameters, but also the stuff inside the tag itself which the link taglib uses. I can't find the attribute to pass in to a g.link() call to have it render the text of the link. I've tried…
user111544
  • 201
  • 2
  • 5
1
2 3
63 64