Questions tagged [jstl]

JSTL (Jakarta Standard Tag Library) is a XML based standard tag library which offers tags to control the flow in a Facelets or JSP page, date/number formatting and internationalization facilities and several utility EL functions.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Issues with JSTL taglibs when migrating to Spring Boot 3 [duplicate]

I am in the process of migrating my Spring Boot JSP application from Spring Boot 2.7 to Spring Boot 3. my login page has this line at the beginning and several references to the <c:if> tag: <%...
Karthik Sankaran's user avatar
0 votes
1 answer
50 views

How to access <sql:query> result set of jsp inside <script>

I am trying to use FullCalendar library to design an interactive calendar where user can click on a date to see the corresponding course schedule/ event. For this I need to populate the events in this ...
bear bear's user avatar
0 votes
1 answer
73 views

Unable to find taglib [c] for URI: [jakarta.tags.core] Tomcat 10.1.x

after migrating to spring 6.0.11 and tomcat 10.1.13, we started getting problems with jstl and jsp. According to the Jakarta Standard Tag Library 3.0 documentation, Ive changed the taglib uri in all ....
Vooply's user avatar
  • 1
0 votes
1 answer
53 views

<c:import var="lib" url="someURL.xml"/> not saving xml content in var variable resulting in <x:parse/> not having anything to read

When I use <c:import var="lib" url="someURL.xml"/> the content is not being saved in the var lib thusly resulting in a premature end of file error in the first line, because ...
Omin's user avatar
  • 11
0 votes
0 answers
28 views

Retrieve selected value from dropdown [duplicate]

Struggling with what should be some basic JavaScript. A basic dropdown selector which correctly shows the selected value in a field - <select id="State" onchange="getstate()">...
Ralph's user avatar
  • 119
-1 votes
0 answers
11 views

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator [duplicate]

i am trying to setup a spring mvc web application with spring boot. I get this error : java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator at java.base/java.lang....
Sophie Moreira's user avatar
0 votes
0 answers
17 views

jsf and jstl in xhtml page c:choose and c:if not behave that way the condition speak

I have Xhtml page wrote by jsf, I'm not sure what happen into the page that test failed one condition and always true or false , I check test condition and said the false and true happen the way ...
Farhood Naqizadeh's user avatar
0 votes
0 answers
12 views

A problem was encountered using TagExtraInfo class org.apache.taglibs.standard.tei.ForEachTEI for c:forEach' (c:out is still working perfect) [duplicate]

enter image description here Currently I'm using: Eclipse Version: 2023-06 Tomcat v10.1.12 web.xml file <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https:/...
GinQt's user avatar
  • 1
0 votes
1 answer
29 views

JSTL Increment date string in forEach loop

I have this <c:forEach> loop in JSTL. The date string is in the format MM/dd/yyyy and at the end of the for loop I would like to increment the day by 1 each time. <c:set var="currentDate&...
Rhett Harrison's user avatar
0 votes
0 answers
6 views

Upgrading Apache Tomcat from 7.0.50 JSTL stops working

I am in change of upgrading an older Apache Tomcat installation from 7.0.50 to 7.0.109. My issues started with any version greater than 7.0.50 it would cause JSTL to stop working. My solution was to ...
EnOne's user avatar
  • 1
0 votes
0 answers
12 views

What is the most obvious jakarta version of javax.servlet:jstl? [duplicate]

What is the jakarta version of <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> ...
ericj's user avatar
  • 2,142
0 votes
0 answers
30 views

JSTL c:set with HashMap

We are in process of migrating a legacy application from one weblogic 12C (JDK 7) to JBoss 7.2 (JDK 8). However, while running the application, we are getting an error Caused by: javax.servlet.jsp....
Akhilesh Kokardekar's user avatar
-2 votes
1 answer
99 views

How to change code of struts tag into spring or jstl tag?

<bean:define id="user" name="form" property="user2" type="document.result" /> This is the example of my code. I was trying to convert my struts code ...
Data Set's user avatar
0 votes
0 answers
24 views

Can't Iterate List Where Come From Servlet [duplicate]

I'm trying to get product list and iterate them into JSP. There's my tried: ProductsServlet.java package product.servlet; import java.io.IOException; import java.sql.SQLException; import java.util....
bgebes's user avatar
  • 95
0 votes
0 answers
18 views

Getting exception in taglibs for 'when' tag after upgrading taglibs from 1.1.2 to 1.2.5 [duplicate]

I had to update the taglibs version (due to project requirement) from 1.1.2 to 1.2.5. After this update, while running UI I am getting this error: javax.servlet.jsp.JspTagException: Illegal use of &...
Nikhil's user avatar
  • 1
1 vote
2 answers
69 views

org.apache.jasper.JasperException: "equal symbol expected" when using JSTL c:out as value of Struts1 html:checkbox

I am using JSTL and Struts1 and I am getting org.apache.jasper.JasperException: "equal symbol expected" on the line with <html:checkbox>: <%@ taglib prefix="c" uri="...
star lord's user avatar
-1 votes
1 answer
59 views

Using JSTL to compare strings keeps failing

Using JSTL to compare strings keeps failing. Environment TOMCAT 7.0.47 JRE6 I have already imported the taglib: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&...
jun's user avatar
  • 1
0 votes
0 answers
27 views

What is Jasper looking for when it can't resolve the "absolute uri" http://java.sun.com/jsp/jstl/core? [duplicate]

Like a lot of people (judging by the sheer number of questions about "'http://java.sun.com/jsp/jstl/core' cannot be resolved") I'm trying to set up a simple .jsp servlet-based web app to be ...
Daniel Nagahama's user avatar
0 votes
2 answers
521 views

<%@ not being recognized in any .jsp files on VSCode

As the title says, I've encountered an issue where not a single <%@ directive attribute is being even recognised in any jsp files on VSCode. For example something like <%@ taglib uri="http:/...
Oskari Rautiainen's user avatar
0 votes
0 answers
16 views

cant use JSTL with Spring BOOT application [duplicate]

I am starting new project with spring boot, and I decided to use jsp-s with jstl tag library I am using Spring version 3.0.6 and I successfully connect jsp files as view, but when I am trying to use ...
Pertsh Galstyan's user avatar
0 votes
0 answers
10 views

Spring boot -Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core" [duplicate]

I recently created a Spring Boot project from the Spring Initializer, and named it IntegratedLibrarySystem. I used the autogenerated features from Spring Boot, but when I tried to import the project, ...
arj's user avatar
  • 885
0 votes
0 answers
19 views

JSTL is giving me errors that i dontt know how to fix [duplicate]

I have spent about 14 hour trying to retrive data from my, mySQL data base. No matter what I try I cant make JSTL present data on a simple jsp (yes ive tried adding it to the pom.xml). I've tried ...
Callium1456's user avatar
0 votes
0 answers
15 views

org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: [org.apache.taglibs.standard.tlv.JstlCoreTLV] [duplicate]

<%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix = "c" uri="http://java.sun.com/jsp/jstl/core" %> <!DOCTYPE html> <...
Md Imran's user avatar
0 votes
1 answer
176 views

How to iterate through JSON Array or JSON object in JSP using JSTL

I'm having this json: { "maxAgentAmt": 66, "minComAmt": 3, "maxTxn": 7, "maxAmt": 99, "minAmt": 3, "maxComAmt": 99 } and I also have to get ...
Akhilesh Dhiman's user avatar
0 votes
0 answers
19 views

java.lang.NoSuchFieldError: value in JSP page [duplicate]

I am migrating an old application from WebLogic to JBoss EAP 7.4. One of my JSP pages is giving me this error: ServletException in '[mypage].jsp': value: javax.servlet.ServletException: java.lang....
user3804769's user avatar
0 votes
1 answer
71 views

Web project not Running on Browser (error 500)

I am learing spring boot and am On a project named DocumentWeb it is a simple web project with a controller, a jsp the mode and the Document Repository (interface) which extends the JpaRepository The ...
Sammie 's user avatar
0 votes
1 answer
55 views

JSP does not recognize the fn prefix when compiling

I'm unfamiliar with Jsp and Jstl , I created this little comparator to sort all my users by name: <c:set var="userList" value="${fn:toList(users)}"/> <c:set var="...
Jacket's user avatar
  • 353
0 votes
0 answers
17 views

Can't link CSS file in TomEE [duplicate]

I have a website that I've deployed to TomEE and it works if I deploy it as ROOT.war. However, I need to deploy it to its own directory. When I do that, it can't find any css, js or other files. The ...
Zephyrus's user avatar
  • 121
0 votes
0 answers
13 views

"No suitable driver found" Error in my Localhost Server for my jsp file having JSTL [duplicate]

I have created a maven project which runs fine. My project run successfully and all fields are correctly updated to database once I run. But I want to display those fields in my project, so I created ...
Sarwvidya's user avatar
0 votes
0 answers
25 views

Data and Images are not being displayed on JSP page and I couldn't figure it out why? [duplicate]

I am working on a personal project to get some coding practice with JSP and servlets. I am using MySql for storing data and I want to render 'user' data to user_list.jsp. Even though the page is ...
Sid's user avatar
  • 122
0 votes
1 answer
81 views

request.setAttribute : How to move values to specific indexes?

I know that I can set a list as an attribute with the following code : List<String> elements = new ArrayList<>(); list.add("Element 1"); list.add("Element 2"); list.add(...
fandetv's user avatar
  • 15
0 votes
1 answer
47 views

JSTL c:forEach not throwing IndexOutOfBoundException when end is greater than items size

I work on a simple form for editing user and their notification emails. User could have 3 emails (0 to 3). Though I create 3 inputs like this: <% List<String> notifEmails = // some code ...
Mohicane's user avatar
  • 302
0 votes
1 answer
1k views

How add JSTL to my IntelliJ Jakarta EE 10 project running GlassFish

First, sorry for my poor english. I begin to learn jakarta EE and I discover Jakarta Standard Tag Library (JSTL) for prevent XSS attack. The IDE say this : "cannot resolve taglib uri" I don'...
Benjamin BASSET's user avatar
0 votes
0 answers
19 views

I add Jstl dependency in pom.xml but in isn't work in my index.jsp page [duplicate]

I add Jstl dependency in pom.XML but in isn't work in my index.jsp page //This is dependency of jsdl for Jakarta 9 <dependency> <groupId>jakarta.servlet.jsp.jstl</groupId <...
Ali's user avatar
  • 1
0 votes
0 answers
24 views

NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator while running springboot project [duplicate]

I am getting this error when I am using JSTL Tags in .jsp file. My JSTL Core lib is: <%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %> and my pom.xml is: &...
Himanshu's user avatar
0 votes
0 answers
10 views

How to iterate through an ArrayList containing Objects using JSTL? [duplicate]

I want to iterate through a ArrayList containing Objects using JSTL. So what I currently have is: ArrayList<Animals> allAnimals = DatabaseF.findAnimals(); request.setAttribute("animals"...
Michelle's user avatar
0 votes
0 answers
38 views

Jsp show element on condition [duplicate]

I am trying to check that attribute in http session storage called "username" is there/not there in http session storage. If it is in http session storage it will show a button. If is not in ...
user avatar
0 votes
0 answers
36 views

JSTL: The method is undefined for the type String [duplicate]

I am learning JSP and JSTL through a book, in said book they mention this example code: <c:if test="${ 'POST'.equalsIgnoreCase(pageContext.request.method) }"> The method doesn't seem ...
getNoodle's user avatar
1 vote
1 answer
39 views

Encode URL passed to JSTL list item

In my tomcat web app, I implemented anti-csrf token like this: <form method="post" action="<%=response.encodeURL("buy")%>"> So, the URL becomes: http://10.0....
TaihouKai's user avatar
  • 145
0 votes
1 answer
296 views

java- jstl in spring mvc is giving JstlCoreTLV cast error [duplicate]

I am trying to use jstl in my java spring mvc project. here is the dependency <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version&...
KUNAL HIRANI's user avatar
0 votes
1 answer
59 views

How to iterate through only ONE value in JSTL?

<c:forEach varStatus="status" var="friends" items="${profile.friends}"> <c:if test="${friends.selectedCount != -1}"> <th id="...
Brandon Hu's user avatar
0 votes
0 answers
19 views

JSTL error when running maven project on eclipse - The absolute uri cant be resolved in either web.xml or the jar files deployed with this application [duplicate]

I am having a probably silly issue with starting up my Maven project in Eclipse. I am creating a job application portal and I am using the following uri code <%@ taglib prefix="c" uri=&...
imherebcsomethingisntworking's user avatar
6 votes
1 answer
5k views

Migration to Jakarta EE: Unable to find taglib [c] for URI: [jakarta.tags.core] [duplicate]

I am trying to upgrade from Spring 5 to Spring 6 and get the following error: Unable to find taglib [c] for URI: [jakarta.tags.core] I have the following in my pom: <dependency> <...
morja's user avatar
  • 8,309
0 votes
0 answers
54 views

Save HTML table data using a button in JSP to autocomplete form in different JSP

I have a dynamically generated table of data pulled from a database with individual buttons next to each entry for "update" and "delete". I am looking for a way to save table entry ...
TLC's user avatar
  • 33
0 votes
0 answers
37 views

How to access the values in nested hashmap in JSP

Java class: class start { Map<Integer, node> main; } class node { String a; Map<Integer, node> d; } "main": { "0": { "a": ...
Alekhya Penugonda's user avatar
0 votes
0 answers
31 views

how to send data from jsp file to another jsp or servlet [duplicate]

<div class="main"> <div class="register"> <h1>Welcome</h1> <% String uname=(String)request.getAttribute("uname"); %> ...
Sourabh malviya's user avatar
0 votes
0 answers
21 views

Uncaught SyntaxError: Invalid Unicode escape sequence \u [duplicate]

I have a JSP which is used to display location in UI form where JSTL code is been used, function setLocation() { var fullPath = "${fn:escapeXml(folderPath)}"; updateFolderPath(...
Ram Somani's user avatar
0 votes
0 answers
33 views

What is the URI of TOMCAT 10 JSTL for JSP, changing "http://java.sun.com/jsp/jstl/core" to the new URI? [duplicate]

I using tomcat 10 and it's standard libraries, in this case the jsp-api.jar with contains the Taglib. Since tomcat 10 all the components are renamed from javax to jakarta and the jstl is changed from ...
Roberto Gonzalez's user avatar
1 vote
0 answers
14 views

Create a custom contentload on opencms and jstl [duplicate]

I am new to using OpenCms and Jstl, I should list some files for the "data" field in their properties, I tried to use some methods: <c:forEach items="<%=folderFilesList%>" ...
Numero 21's user avatar
  • 245
0 votes
1 answer
115 views

Accessing a JSTL attribute inside a jsp code

How to access the jstl attribute "difpos" in jsp varaiable "ph". <c:set var="difpos" value="10"/> <%int ph = pageContext.getAttribute("difpos"...
Shantha kumar's user avatar

1
2 3 4 5
110