Questions tagged as 'jstl'

0
answers

How to remove the value of the variable with JSTL?

I'm testing to clear a list of objects that is passed to the JSP, and I execute the command below: <c:remove var="lista" scope="session" /> <c:out value="${lista}"></c:out> But when I call the page with the JSP, I find the...
asked by 28.09.2015 / 22:37
1
answer

Select dynamic query button submit and input

How to do a dynamic select in JSTL by a JSP? For example, I fill CNPJ in a input id="cnpj" and when I click the submit button it takes this value from input , plays SQL in the QUERY as a parameter and executes on the same page, retu...
asked by 25.08.2015 / 21:07
1
answer

JSTL adding null option within select element

I construct a <tr> line using AngularJS and JSTL, and within that line I have a select element in which it is run using <c:forEach> on an enumerator to fill it when the user clicks to insert a new line <td&g...
asked by 28.10.2015 / 13:46
3
answers

How to add an attribute with JSTL under one condition?

<div class="body"> <selected name ="multSelectSkill" id="optgroup" class="ms" multiple="multiple"> <optgroup label="GRUPO 1"> <c:forEach items="${skillsOperador}" var="skillsOperador"> <option va...
asked by 09.08.2017 / 14:30
1
answer

c: forEach does not work

For some reason my <c:forEach> does not work, my normal for-each normal, in which I System.out.print works normally. MODEL: package model; public class ModeloX { private int id; private String desc;...
asked by 05.02.2018 / 19:40
1
answer

Problem with taglig in Java

I'm building a page JSP , however, I'm having a problem referencing my taglib of jstl . I'm referencing it this way: <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> But in Eclipse I'm getting t...
asked by 28.11.2015 / 15:55
1
answer

Call DAO methods foreach jstl

I'm starting my studies in jsp and I came across the following situation: I want to use the forEach of jstl c: foreach and want to use a list that is returned by my DAO method. <body> <jsp:useBean id="dao" class="teste.ContatoDAO"/&g...
asked by 08.11.2017 / 22:30
1
answer

Maximum number of options within the c: choose tag of JSTL

Personally I was recently working with JSTL and I came across the following situation, I tried to add 3 tags when inside a choose tag and the last tag just does not work, the code looks like this: <c:choose> <c:when test="${pa...
asked by 31.12.2016 / 18:56
1
answer

How to get values from a row that are in a jstl list and send into their respective input text on the same page jsp?

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 of that row from the list and send it to the same jsp where it has a form with the fields to be made the cha...
asked by 13.12.2018 / 20:51
0
answers

Jstl + maven do not work, configuration seems correct

The error is as follows: org.apache.jasper.JasperException: 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 tried the post: link but nothing w...
asked by 01.12.2018 / 20:11