All Questions
234
questions
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
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
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 ...
1
vote
1
answer
203
views
How to write a generic JSP Template for Dropdowns etc.?
I want to create JSP templates, i. e. JSP files that contain e.g. a dropdown or input field, to keep the styling of the elements in one place.
Now these templates should be used in different UseCases. ...
0
votes
2
answers
456
views
How can I sort an array with JSTL?
For example if a have this:
<form method="post">
<c:forEach var = "i" begin = "0" end = "5">
<input type="text" name="...
0
votes
0
answers
104
views
How to pass literal String array to jsp:attribute
I have a a JSP attribute in a JSP Tag file and I'm trying to pass it a literal String like {"Something", "Something else"} Is there anyway to do it?
This is the closest I've come ...
1
vote
0
answers
62
views
c:import jsp page with translation
I'm trying to load a jsp from remote during runtime. <c:import> accepts remote url and loads the file but it displays the jsp content as it is. Downloaded jsp has custom tags in it which needs ...
8
votes
3
answers
13k
views
java.lang.NoClassDefFoundError: jakarta/servlet/jsp/jstl/core/LoopTag in Tomcat 10 [duplicate]
I just migrated to Tomcat 10. After changing all references of javax.servlet packages to jakarta.servlet I still can't get my app to run.
I have downloaded the JSTL 2.0 class libraries from Here and I ...
1
vote
1
answer
704
views
Difference between jsp redirect url tag and response.sendRedirect() method
I have the following code to redirect to a new page from a jsp.
//response.sendRedirect("someJspPage.jsp");
%>
<c:redirect url="someJspPage.jsp" />
<% ...
0
votes
1
answer
66
views
jstl core tag forEach doesn't appeared on JSP
<h1>Customer Lists</h1>
<div>
<table border="1">
<tr>
<th>Customer Name</th>
<th>Email</th>
...
0
votes
1
answer
33
views
is possible to use binded param tags in different usl jstl tags?
I have a 2 different <c:url> tags in my jsp code. I need to use same <c:param> list to all of them.
It is possible?
eg:
<c:param var="userid" value="2"/>
<c:...
1
vote
3
answers
492
views
Unable to compare map.key with string in jsp/jstl [duplicate]
I am working on jsp, and facing some syntax related issue (that's what I think it is). So, my jsp code has a map that is pushed to jsp through ModelAndView as a Map. In jsp, I want to compare the map....
0
votes
0
answers
28
views
Dynamic Code Evaluation: Code Injection in JSTL <c:out value="${searchVal != null ? searchVal :''}"/> [duplicate]
I have Jsp and Struts 2 based application where we have used jstl to render the output. Now if in any of the get APIs i am giving the request param as jsp expression. For eg :
http://localhost:8090/...
0
votes
1
answer
775
views
JSTL fmt:formatDate with locale dependent pattern [duplicate]
In a JSP page I have to display some dates, but none of the available date formats (short, medium or long) suits me.
<fmt:formatDate value="${someDate}" type="date" dateStyle="short"/>
<fmt:...
0
votes
2
answers
679
views
JVMVRFY012: VerifyError for JSTL Tags - Foreach & Set tags
IBM WAS: 8.5.5 Version
On JSP pages have & tags, I receive below error
Error 500: java.lang.Exception: java.lang.VerifyError: JVMVRFY012
stack shape inconsistent; class=com/ibm/_jsp/...