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

How can I test if a given request parameter is present using Struts tags?

Some pages can receive a certain request parameter called "P1": page.do?P1=value1 Right now a scriptlet is testing the existence of the request parameter, and if P1 is "value1" some information is rendered on the page . Instead of using a scriptlet…
Andrei Ciobanu
  • 12,500
  • 24
  • 85
  • 118
7
votes
1 answer

Which JSTL URL should I reference in my JSPs?

I'm getting the following error when trying to run a JSP. I'm using Tomcat 6.0.18, and I'd like to use the latest version of JSTL. What version of JSTL should I use, and which URL goes with which version of JSTL? I'm getting this error "According to…
ScArcher2
  • 85,501
  • 44
  • 121
  • 160
7
votes
2 answers

JSP in OSGi: How to load TLD from bundles?

We're building a JSP web application, which runs inside the Apache Felix OSGi container (the web app itself is a OSGi Bundle). Now, we're facing the following problem: According to the JSP 2.0 Spec, TLD (taglib descriptors) no longer need to reside…
Basil
  • 638
  • 1
  • 9
  • 16
7
votes
1 answer

Grails: Getting current View name from within a Taglib

Is there any way to find out the current view (or gsp file) that is being evaluated? RequestURI doesn't work due to URL Mappings and forwards. I'm trying to retrieve resources dynamically based on the current GSP file. For example, if…
Reverend Gonzo
  • 39,701
  • 6
  • 59
  • 77
7
votes
5 answers

Error in my taglib <%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0"%>

When I developed my portlet and when i wrote my jsp page I used: <%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0"%> but eclipse show me an error telling me that it cannot find the tag lib descriptor for…
Wael
  • 183
  • 1
  • 2
  • 7
7
votes
2 answers

Grails : Writing a taglib which uses a template to render data and keep it controller agnostic

I wrote a taglib which executes some logic and renders some data weaved into HTML. When I use the taglib in a view, the taglib expects to find the template in a relative subfolder of the view. Is there a way in which I can make the taglib pick up…
Ritesh M Nayak
  • 8,001
  • 14
  • 49
  • 78
6
votes
2 answers

Correct .tld file header

I want to create custom tag, but i get "XML parsing error" on JSPVersion line. I check my JSP version, is exactly 2.1. I think error in links.
WelcomeTo
  • 19,843
  • 53
  • 170
  • 286
6
votes
1 answer

How to read video metadata (C/C++)?

I am trying to write a small music manager in Linux using C++. I am currently using TagLib to read the media's metadata. However, as far as I know, TagLib does not support reading tags (title, artist, etc...) from a video. Therefore, I just want to…
phongvcao
  • 479
  • 3
  • 10
  • 15
6
votes
3 answers

Ellipsis (abbreviate text) with JSP / EL

I was wondering what is the best way to implement an ellipsis abbreviation with JSP / Expression Language. For now, I've been using fn:substring, which is ok, but I would like to have the three dots "...", in case the text was truncated. With a web…
stivlo
  • 83,644
  • 31
  • 142
  • 199
6
votes
3 answers

How to write tagx (JSPX tag libraries without java)

I can't find good documentation on how to write modern tag libraries without Java in JSPX? Spring Roo provides lots of examples (and seems to be only project that uses tagx extensively). I may make this another question but every time I want to not…
Adam Gent
  • 47,843
  • 23
  • 153
  • 203
6
votes
1 answer

Pip installing pytaglib error

When I try to install pytaglibs with this: pip3 install pytaglib I got those errors: > [root@localhost taglib-1.11.1]# pip3 install pytaglib WARNING: Running > pip install with root privileges is generally not a good idea. Try > `pip3 install…
ncpa0cpl
  • 192
  • 1
  • 13
6
votes
3 answers

Spring MVC and custom tags

I want to use spring-beans in my custom taglibs in a spring-mvc application. Cause TagLib-Instances aren't instantiated by spring, I can't use dependnecy-injection. My next thought was to add the spring-context by an interceptor to the request and…
mibutec
  • 2,929
  • 6
  • 27
  • 39
6
votes
5 answers

reading properties file from JSTL

I am trying to read a "properties file" form JSTL using taglib , but i can't access it <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%> I've located the tld file correctly in the web.xml , am sure of…
hind
  • 131
  • 2
  • 3
  • 7
6
votes
3 answers

Compiling static TagLib 1.6.3 libraries for Windows

I am having a super hard time compiling and using TagLib 1.6.3 in my Qt project. I've tried everything I can think of. TagLib claims that it is supported through CMake but I'm not having any luck. Furthermore, I'm confused about what kinds of files…
jocull
  • 20,008
  • 22
  • 105
  • 149
6
votes
2 answers

Spring Boot- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files

I have looked up for a solution. This is the closest it gets and This. Any of these did not worked. I get the following exception. I am using spring boot. I am running it as a Spring boot app. not inside Tomcat. org.apache.jasper.JasperException:…
diyoda_
  • 5,274
  • 8
  • 57
  • 89