Questions tagged as 'jsp'

1
answer

How to compare String with String received in a .jsp?

I have a html page and it sends a form with method POST type, I get the data like this: String email = request.getParameter("user"); When I compare the email string with another string containing the same text it makes me false. Why does t...
asked by 12.03.2018 / 21:18
1
answer

Send login and password in JavaMail email

I'm developing a web application using jsp and servlet and I would like it when sending the email it passes an image and the login and password but the email only send the image and does not send the login and password. / p> Image with error...
asked by 11.01.2018 / 02:53
1
answer

Ajax does not return Json

Why am I no return on Ajax? It goes through the alert (over the for), but never enters the FOR. I'm not using any framework. Servlet: @Override protected void doPost(HttpServletRequest request, HttpServletResponse response)...
asked by 25.01.2018 / 23:42
2
answers

No result when sending data from a form in JSP

I'm trying to make a mini-login screen, grab the data from the compare form and then redirect it to a JSP page. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title...
asked by 23.11.2017 / 23:07
1
answer

Problem in request via ajax

I have a JSP login page on my system, but when trying to perform a request via ajax to authenticate me, the form does not seem to be sending correctly, as it is redirected to the login page itself. Ajax Code: $( document ).ready( function...
asked by 26.11.2017 / 02:05
1
answer

How to work with object as attribute in the register of another object using JSP?

I have a Scheduling class. In this class I have a Task object. My question is, when creating the screen to register the schedule, I will have a field to register the Task of this schedule. Imagining that these tasks are already registered in the...
asked by 16.11.2017 / 21:47
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

List 2 Tables in a Oriented Object

I have an academic job. and I'm not listing the DB data, or this is giving the error java.lang.NullPointerException I searched for something similar I found, I saw some examples but the form they use and creating the same attributes within the P...
asked by 22.11.2017 / 12:13
1
answer

Parameter passing via AJAX

I am developing the customer registration part of my application and are registering in the database normally, but I would like that when I register and be redirected to page ConfirmacaoCadastro.jsp it would take the email that I passed b...
asked by 25.10.2017 / 00:42
1
answer

NullPointerException in Java web [closed]

I'm having a problem in a JSP that should insert a project into my work returning me as an error, this is almost identical to an exercise I did earlier, so I do not understand the reason for the error. Error: org.apache.jasper.JasperExcepti...
asked by 04.10.2017 / 21:00