Questions tagged as 'jsp'

1
answer

How to pass information from a JSP page to a Servlet

I need to pass information from a String variable that is on a JSP page to a Servlet. For example: String path="C: \ test.jpg"; How do I get this information in the Servlet?     
asked by 22.09.2016 / 19:28
1
answer

Comparator ArrayList JSP Object

I'm having trouble implementing the Comparator method, to sort the ArrayList of Objects. I have a class of Entrepreneurship. Whereafter, I create an ArrayList, which is populated from a content manager system. I added the compareTo method,...
asked by 14.01.2016 / 13:31
2
answers

Multiple sorts with ArrayList

I have a question. I want to sort the ArrayList person in different ways. <%@ page import= "java.util.*"%> <%! public class Pessoa implements Comparable<Pessoa> { String Nome; Integer numero; public Lista(St...
asked by 24.02.2016 / 14:58
3
answers

How to work with content in thymeleaf?

Through a tutorial you can create an inclusion of products using the following html code <c:forEach items="${tipos}" var="tipoPreco" varStatus="status"> <div> <label>${tipoPreco}</label>...
asked by 10.04.2016 / 00:27
1
answer

Problem with session in the servet

I have the saida.jsp . It is my page that depending on the option chosen by the user, it is mounted one way. I have two options for user verbs and adverbs . If the user clicks the verbs option it will be redirected to the saida.jsp page...
asked by 20.01.2015 / 20:00
2
answers

When adding system function does not compile [closed]

I have the following class: package br.com.xti.ouvidoria.helper; import java.util.Collection; /** * @author Samuel Correia Guimarães */ public class ValidacaoHelper { /** * @param obj * objeto a ser validado...
asked by 15.09.2017 / 20:28
1
answer

Opening a full size Table

Well I have the following doubt. I have this table in my project. Theusercomplainsaboutthesizebecausethescrollbarsappear,asthepagealreadyhasalotofinformationyoucannotincreaseit(andIwouldusethiscodeinotherscreensaswell).I'dliketheusertoclickonab...
asked by 07.02.2017 / 13:15
2
answers

How to display on a JSP page the attributes of an object that was passed in a list

I'm working on a Java Web project, using the Spring MVC framework. I'm having trouble displaying information that comes from a list where analysts are registered. The analyst name is displayed correctly, since name is a String attribute of...
asked by 04.08.2015 / 19:49
1
answer

JSP page being displayed as Java Spring text

My JSP page is being displayed as text. I'm using Spring and Spring Security. When I open the link to my page in the browser it opens as text (All HTML appears written on the screen as if I had opened the page in the same notebook) and does no...
asked by 30.06.2015 / 04:42
1
answer

Angular.js $ setValidity onLoad Page

Scenery: I have a form with 3 steps, a jsp for each step. In a given jsp there is a input text with the directive ng-minlength and a onChange that calls a function that validates with $setValidity if the value...
asked by 05.05.2015 / 15:27