Most voted "jstl" questions
JSTL (JSP Standard Tag Library) is a library that extends and facilitates the development of JSP page. Among the features, includes iteration and conditionals, date formatting, numbers.
Learn more…27 questions
Sort by count of
-
3
votes1
answer379
viewsHow to mount a link in JSP with the value of an input?
You can mount a link(href) or action(form) by taking the value of an input to pass to a @Pathvariable of a method in the controller? My code is next in the controller:…
-
3
votes1
answer125
viewsWhite space JSTL
I have a very annoying problem, when my jsp is mounted I have a jstl foreach that leaves my final code absurdly giant, worse than I realized it’s just blank space. Follows the code : <c:forEach…
-
1
votes1
answer212
viewsSelect dynamic query button Submit and input
How to make a dynamic select in JSTL by a JSP? For example, fill CNPJ in a input id="cnpj" and when I click on the Submit button it takes that value from input, plays in SQL QUERY as parameter and…
-
1
votes0
answers153
viewsHow to remove the variable value with JSTL?
I am testing to clear a list of objects that is passed to JSP, and run the command below: <c:remove var="lista" scope="session" /> <c:out value="${lista}"></c:out> But when I call…
-
1
votes1
answer75
viewsJSTL adding null option inside select element
I build a line <tr> using Angularjs and JSTL, and within this line I have an element select where it is travelled by using <c:forEach> over an enumerator to fill it when the user clicks…
-
1
votes1
answer95
viewsDoubt with Expression Language JSTL JSP
How to verify the value that is arriving in EL, in the listPedidos variable of items ? <c:forEach var="pedido" items="${listPedidos}" varStatus="id"> <c:if test="${pedido.tipoPedido ==…
-
1
votes1
answer396
viewsJsp with scriptlets, taglib or jstl
Hello, I just registered and is being my first question. Sorry for any rule I’m not following with this post. Well, a little while ago I started learning jsp in college, a little bit of scriptlet…
-
1
votes1
answer107
viewsHow to summarize a long text using Thymeleaf?
I have an object with two attributes, one is id and the other is strring type attribute called text type "TEXT" (postgres database) which is used to store the text of a customer post. When the app…
-
1
votes0
answers43
viewsNullpointexception using JSTL
Hello. Guys, I’m having a problem trying to pull up a list of users using a c:foreach. When requesting the list, a Nullpointexception is returned, which, although I understand the reason for the…
-
1
votes1
answer328
viewsProblem in web.xml
Hello! I have my web.xml, I want to put the jstl dependency, for this I am using the following code: <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId>…
-
1
votes2
answers35
viewsSelect does not select the correct value
I have the following problem: <select name="cargo" id="selectCargo" class="form-control show-tick maiuscula" required > <option value="">ESCOLHA A EMPRESA</option> <c:forEach…
-
1
votes0
answers62
viewsJava web, jstl :How to execute a method in Servlet when exiting an input text ex:"check whether the name availability for registration"
How to execute a method when exiting a input text. Example I will make a registration at the time of registering as a user I want to check if that name is available to be used , and can not accept…
-
0
votes1
answer38
views -
0
votes3
answers164
viewsHow to add a JSTL attribute under one condition?
<div class="body"> <selected name ="multSelectSkill" id="optgroup" class="ms" multiple="multiple"> <optgroup label="GRUPO 1"> <c:forEach items="${skillsOperador}"…
-
0
votes1
answer191
viewsEnconding problem: JSTL fmt
I’m using fmt to internationalize the texts on a page. It turns out that when using accents, the text gets weird characters. I tried to change: <fmt:requestEncoding value="UTF-8" /> but there…
-
0
votes1
answer668
viewsMaximum number of options within the JSTL <c:Choose> tag
People recently was working with JSTL and I came across the following situation, I tried to add 3 tags when within a Choose tag and the last tag just doesn’t work, the code was like this:…
-
0
votes0
answers11
viewsI need to compare a long in JSTL!
I have a code I need to check if an attribute of the class "Postodesaude" which is a long is equal to "0", but I can’t make it work. <c:if test="${postoDeSaude.codigo eq 0}"> <button…
-
0
votes2
answers215
viewsgetParameter returning the same value
I have a table where there’s a column ID - NAME - ACTION 1 -- USU1 -- VER 2 -- USU2 -- VER 3 -- USU3 -- VER in JSP I am storing the id inside a Hidden input. <input type="hidden"…
-
0
votes1
answer225
viewsCalling foreach jstl DAO methods
I’m starting my jsp studies and came across the following situation: I want to use jstl foreach c:foreach and I want to use a list that is returned by my DAO method. <body> <jsp:useBean…
-
0
votes1
answer588
views -
0
votes1
answer337
viewsHow do I take values from a row that are in a jstl list and send them into the respective input text on the same jsp page?
Good afternoon guys! I’m using "Jsp, Servlets, and jstl". I have a list where I have a link called change, when I click I get the values from that list line and send to the same jsp where there is a…
-
0
votes1
answer22
viewsHow to print in a select in a jsp one list within another?
<div align="center"> <table border="1" cellpadding="5"> <caption> <h2>Lista de Usuarios</h2> </caption> <tr> <th>CPF</th>…
-
0
votes1
answer341
viewsSelect option from c:foreach | JSP - JSTL
Goodnight, I need help with a JSTL code. I need to select an option listed by a c:foreach and send it to my Contoller. This data comes from the database. To better understand the logic, I have in…
-
0
votes1
answer69
viewsprint Map Object results with JSTL/JSP
Good evening everyone, I would like to know how to print the values of the Map Return Object with jstl? I tried to do with foreach, but the values does not return anything. Follow my implementation:…
-
0
votes0
answers35
viewsTake an input value from a table and pass with parameter in a link
Good afternoon I need to take the value typed in an input inside a table that was fed with a List, and pass this value as parameter in a link, along with other parameters that these already got, due…
-
-1
votes0
answers9
viewshow to load database data on jsp jstl screen
ola have a jsp and jstl screen on the java system, on this screen loads database data by select, screen codico: <%@ page language="java" contentType="text/html; charset=ISO-8859-1"…
-
-3
votes1
answer14
viewsselect a column in specific or sort table by id, Postgresql JSP and JSTL
Well I have a project with Postgresql, JSP, JSTL and SERVLETS, where on a screen I have a place that updates a product and another place that shows the table of products, the problem is that I do…