Questions tagged as 'jstl'

1
answer

I need to treat an enumerated as if it were an array in a jsp with jstl

For now I am loading the elements of the list manually, but I would like to know if you can go through any of the components provided by JSTL ( c:forEach for example), because in the enum I have 3 options, but imagine if there are 500 opt...
asked by 27.03.2018 / 20:24
1
answer

Obtain values of a jsp variable in javascript

I was trying 2 ways to get values in a variable jsp in my javascript, but they give me different results FIRST ALTERNATIVE //Con esto obtengo un string con este valor "[1,2,3,4]" <% String permisos= (String)session.getAttribute("permisos...
asked by 10.09.2018 / 19:01
1
answer

Increase JSTL value

I have a table that shows the values of a select. Each field is accompanied by a numerical value that refers to each of the lines that the table has. But I'm not able to make them grow. <tbody> <c:set var = "contador" value = "1" s...
asked by 19.03.2018 / 09:20
0
answers

org.apache.jasper.JasperException: java.lang.NullPointerException

I have the following error, but it only happens when I add the tag , the user class is instantiated, but when the label is removed, it works normally. ] 2     
asked by 21.11.2018 / 02:59
0
answers

Pass a value from my database to a select in a form

I am working with JSP, Servlets and SQlite using the MVC pattern, in eclipse. I explain what I'm doing, I have a page that lists a series of records and shows them in a table (all right up there) I am using JSTL, a servlet returns an ar...
asked by 08.11.2018 / 18:58
1
answer

Get value of an attribute of an object and put it in a variable in jsp

I need to get the value of an attribute of an object (user.estado) and put it inside a variable (state) of JSP and then make if statements depending on that variable. Here the code. <tbody> <tr>...
asked by 20.07.2018 / 18:36
0
answers

How to render a multilevel menu from a database in jsf?

I am trying to build a module of a system of audits using JSF, the summary of the module is: there are audit projects which have questions that a lead auditor must answer and if he can not answer the question, he generates a requirement to a ass...
asked by 19.06.2018 / 04:54
0
answers

jstl foreach variables

I have the following foreach in the controller for(Paquete p: listaPaquetes){ entregablePaquete = entregableDao.listaEntregablePaquete(p.getIdPaquete()); map.put("entregablePaquete"+p.getIdPaquete(), entregablePaquete)...
asked by 30.04.2018 / 19:41
1
answer

How to perform if statement with JSTL Java? [Java EE]

I'm trying to list operators whose level or type of user equals 3. Clearly I have an error in the syntax or in the comparison that I make. I hope you can help. <tbody> <c:forEach items="${listPostulant}" var="postulant">...
asked by 06.07.2018 / 19:48