Questions tagged as 'jsp'

2
answers

logout error servlet cookie

Hello. I'm having an error on the line: Cookie cookie = new Cookies(req.getCookies().getUsuarioLogado(); The complete method / class is this: @WebServlet(urlPatterns = "/logout") public class Logout extends HttpServlet { protecte...
asked by 12.07.2016 / 14:49
1
answer

How to transform a java String into a Java Array Object?

On a .jsp page, I have the following code: String[] arrayRegioes = request.getParameterValues("numRegiaoUsuario");//objeto When I print the arrayRegioes , the value shown is:    [Ljava.lang.String; @ 5a879b45 Now, I need to tr...
asked by 24.03.2016 / 14:22
1
answer

How to know the version of the JSP that is in a project

I have a Java project and would like to know which version of JSP is being used in this project. Example, I have an old project, how do I get this information?     
asked by 24.11.2015 / 11:24
1
answer

How to handle error 404 and 500 in vRaptor?

I have already seen tutorial of vraptor4 teaching to put this error in web.xml, to redirect, the following xml code: <error-page> <error-code>404</error-code> <location>/404.jsp</location> </error-page&...
asked by 14.07.2015 / 19:36
1
answer

JSP: Item page not found

I'm scheduling a page to tell you that the searched item was not found. I wanted to know what I'm doing wrong and what would be a solution. <c:forEach items="${proposta}" var="proposta"> <div> <img src="....
asked by 28.04.2015 / 18:53
2
answers

Problems with else if in servlet

I'm messing with jsp. In my servlet I have if and else if and both send to the same page, only with different values. However, when you enter the if option (it shows the result) and then when you return the page and t...
asked by 15.01.2015 / 21:57
1
answer

Input Date causes error 400 - The request sent by the client was syntactically incorrect

Every time I enter a input of type date in my form , the server returns error 400. I've tried everything, when I remove the field date does not give the error. My controller: package br.com.starcode.agenda.controll...
asked by 23.11.2014 / 16:46
1
answer

Input of file type with split () function returns with comma

I'm retrieving the file returned from a input of type file of a form and it returns C:\fakepath\nomedoarquivo.extensão so far so good, hence I applied a split() and it returns the following: ,nomedoarquivo.e...
asked by 20.12.2018 / 14:58
2
answers

Servlet attributes for more than one JSP?

I have a Servlet that does the following: L_sessao.setAttribute("Login", usuario); response.sendRedirect("InicioCliente.jsp"); It sends the user name to the HomeClient.jsp page, on this page I can recover it without any problems. But I need...
asked by 16.10.2018 / 20:33
1
answer

How to make a for in a tag script?

Well, I'm trying to create a page on my site that shows me the title, description, and location of the log of some occurrences. When I access the page, I load through%% all occurrences with their proper parameters. The occurrences are sent withi...
asked by 01.07.2018 / 03:43