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.
jstl
5,486
questions
0
votes
0
answers
20
views
JSP Page corrupting after closing and re-opening eclipse
This is the second time this has occurred for me. The first one I wasn't sure if I had saved or not before closing Eclipse but this one I'm sure I've saved before closing it.
So, after saving and ...
0
votes
1
answer
34
views
java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.BodyTagSupport
I have the following code in a JSP file for the tags which is included in all of my JSP files at the top:
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
&...
-3
votes
0
answers
27
views
Unable to use JSTL with embedded tomcat, returns Http Status Code 500 [duplicate]
"The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application"
I've scoured the web for hours trying various ...
0
votes
0
answers
34
views
Getting java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator in my Java Web Application project [duplicate]
I'm working on a Java web application and I'm encountering the following exception when I try to deploy my project:
java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator
at ...
0
votes
0
answers
18
views
Unable to load tag handler class [org.apache.taglibs.standard.tag.rt.sql.QueryTag] for tag [sql:query] [duplicate]
I am new to JSP pages. I am trying to use core Tags and sql tags in JSP using JSTL. But somehow I am getting the following error.Error 500 on Compilation
My JSP file is as follows:
<%@ page ...
0
votes
1
answer
37
views
How I can split the string based on "--" only in jsp
When I am trying to split the string based on "--"(double hyphen) its also splitting the string contain "-" (single hyphen)
**tempMessage="hello--Name:xyz";(its splitting ...
0
votes
0
answers
35
views
After JDK 17 migration JSP content not visible
Getting below warning
WARN [org.springframework.web.servlet.PageNotFound] (default task-4) No mapping for POST /VisitVerification/allmodal.ac
WARN [org.springframework.web.servlet.PageNotFound] (...
1
vote
1
answer
29
views
Neither BindingResult nor plain target object for bean name 'todooo' available as request attribute
While running the insert without validation it works, but when I added validation like targetdate must be future date and trying to show in form twoway binding, then this error started.
No idea on ...
0
votes
0
answers
71
views
java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator in Spring-boot jsp application [duplicate]
I am getting the error while hitting the home page.
java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator
I have created one spring-boot project where in the home.jsp page ...
0
votes
0
answers
25
views
Can JSTL or Custom Tag Libraries be Called from Thymeleaf?
Can we call JSTL or Custom Tag Libraries from inside of Thymeleaf?
We have numerous tags that we have built over the years and would prefer to not transform them to Thymeleaf Fragments.
0
votes
0
answers
38
views
How to fix CVE-2021-28170 Vulnerability in org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1; cannot find newer library version [duplicate]
The referenced CVE says "...Jakarta Expression Language implementation before 3.0.4..." Implying that a version 3.0.4 is available.
I'm darned if I can find it!
Mavenrepo (https://...
1
vote
2
answers
308
views
How to fix checkmarx reflected XSS attack in JSP page?
In the below JSP page Checkmax shows a Reflected XSS attack as I am using ${pageContext.reqest.contextPath} variable in JavaScript source. I have tried using
<script type="text/javascript&...
0
votes
0
answers
18
views
How to use JSTL in JSP: jakarta.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator [duplicate]
I am using TomCatServer v10.1 for Java Web Development project. I am not able to use JSTL in JSP and the error is
HTTP Status 500 – Internal Server Error
Type Exception Report
Message java.lang....
0
votes
0
answers
21
views
what this signifies <%@ taglib prefix="c" uri="jakarta.tags.core" %> in jsp file under src root folder src/webapp/WEB-INF/jsp/home.jsp? [duplicate]
I'm following a video where tutor added the above line to see result on jsp from controller after writing model.addAttribute("", ); and mentioned JSTL tags and jasper for rendering in ...
0
votes
1
answer
247
views
TagLibraryValidator error while using JSTL Tags
I have been practicing JSTL tags in EclipseIDE but the code is throwing an HTTP Status 500 error.
I am trying to integrate JSTL tags into my .jsp files, but I am facing a TagLibraryValidator error.
I ...
0
votes
0
answers
14
views
Facing issue while trying to run JSTL in a springboot project on Eclipse [duplicate]
in my pom.xml. I have
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope&...
2
votes
1
answer
2k
views
How to use JSTL in Tomcat 10.1 error : jakarta.tags.core is not recognized [duplicate]
I know that Tomcat v10.1, refers to the following SPECS :
Servlet 6.0
JSP 3.1
EL 5.0
So my Graddle dependencies are :
dependencies {
compileOnly "jakarta.servlet:jakarta.servlet-api:6.0.0&...
0
votes
0
answers
15
views
avoid space node generate by jstl [duplicate]
I use jstl in xhtml pages with JSF.
However, i notice that when i use jstl tags like foreach, HTML space nodes are generated.
<c:forEach var="i" begin="1" end=&...
0
votes
0
answers
17
views
org.apache.jasper.JasperException: org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.jsp.login_jsp [duplicate]
enter image description hereenter image description here
I've followed all the troubleshooting steps suggested on Stack Overflow, including comparing project settings, verifying library versions, ...
0
votes
0
answers
19
views
SpringBoot Security + JSTL Version Conflict Error [duplicate]
Is there any alternative or best way to apply presentation logic in SpringBoot views?
Instead of JSTL
After 5 days of finding error,
i am getting error in my project because i am using JSTL and ...
-1
votes
1
answer
460
views
Spring Boot facing problem with jstl (JSP) [duplicate]
I am working with Spring boot with jstl problem when i call the jsp page it return the error of validation
[2m[nio-9090-exec-1][0;39m [36mo.a.c.c.C.[.[localhost].[/].[jsp] [0;39m [2m:[0;39m ...
0
votes
0
answers
45
views
JSP printing html code instead of evaluating and rendering it
In my JSP file, I have a string coming from my Java file which reads value= "Set ${value}", I have another string which stores HTML code called htmlVal. When I print htmlVal by itself it ...
0
votes
0
answers
40
views
Xss prevention in JSP [duplicate]
XSS is well known vulnerability in JSP. There are lot of information on web (and on stack overflow) about preventing XSS in JSP.
I have found printing user input with <c:out> is most commonly ...
0
votes
0
answers
65
views
How to display a list from database in a JSP page [duplicate]
Cannot display data from database:
Page Image:
ProductListServlet.java
@WebServlet("/ProductServlet")
public class ProductListServlet extends HttpServlet {
@Override
protected void ...
0
votes
0
answers
10
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:
<%...
0
votes
1
answer
68
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 ...
0
votes
1
answer
2k
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 ....
0
votes
1
answer
61
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 ...
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()">...
0
votes
0
answers
47
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 ...
0
votes
0
answers
24
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:/...
0
votes
1
answer
100
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&...
0
votes
0
answers
21
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 ...
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>
...
-2
votes
1
answer
326
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 ...
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....
0
votes
0
answers
21
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 &...
1
vote
2
answers
109
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="...
-1
votes
1
answer
70
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" %&...
0
votes
2
answers
2k
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:/...
1
vote
1
answer
309
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 ...
0
votes
1
answer
93
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 ...
0
votes
1
answer
78
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="...
0
votes
0
answers
26
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 ...
0
votes
1
answer
84
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(...
0
votes
1
answer
60
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 ...
1
vote
1
answer
3k
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'...
0
votes
0
answers
42
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 ...
1
vote
1
answer
80
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....
0
votes
1
answer
952
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&...