Questions tagged as 'java-ee'

1
answer

Question about Filter - JSP

Well, I'm learning JSP and I'm trying to make a filter where the user is not logged in. It redirects to a login page, and I'm not getting it. I created a Servlet controller that does the Dispacher for a JSP, in case it would be Add Task and...
asked by 14.11.2017 / 12:26
1
answer

How to point through Login, which database the system should connect to via Hibernate

I'm developing a JAVA system with JSF, PrimeFaces and Hibernate with Mysql database. In this system the user must inform the login the bank that wants to connect (User, password and bank). The problem is that when the user calls the Login screen...
asked by 21.11.2017 / 21:02
1
answer

Dynamic Table with Ajax and JSP

I'm learning Java Web and would like to know if they could help me in the following: I have a form that I enter data in the bank, and under it a table in which I make the listing of what was inserted in the bank, however what happens is the foll...
asked by 06.11.2017 / 12:10
0
answers

Message on the JSP Servlet page

I am developing a JSP and Servlet login in which it does the validation of the fields if they are filled and certain but when redirecting to login page it does not display the message of Please fill in the fields of login or password or Incorrec...
asked by 28.10.2017 / 22:41
0
answers

Make Global Selection in the Application

I wanted to know how to make the overall year selection in the application and work with the data only with the selected year. Do I have to make the ManagedBean be ApplicationScope? How do I navigate the application and not lose it in select. .c...
asked by 13.11.2017 / 15:17
1
answer

Problem with JSF during form validation

I have a problem with the animal registration form: Here's the part of the diagram involved in the form relationship: TheproblemisthatwhenIamregisteringananimal,Icangetbythename,age,genderandtypeofanimal(whichinthiscaseisfromanothertable)...
asked by 03.11.2017 / 00:26
1
answer

ResultSet is not positioned correctly, you may need to call next

I am developing a web application using JSP and Servlet and that I register the data of the products in the database and present the data in a table, but when I try to see the image registered by the primary key the description http://localho...
asked by 01.11.2017 / 15:45
2
answers

Comparison request.getParameter with String JSP

I want to get what the user will type with request.getParameter and compare it with a String and if the value that the user type is equal to the string, the user will be redirected to the page but this is not happening. > String login =...
asked by 05.10.2017 / 01:48
1
answer

I can not put the servlet value in the JSP page

I am trying to validate the login and password of the user, in that if not enter the fields of login and password will appear a message in the screen "Please fill in the fields of login or password" or in case the user type the user or Incorrect...
asked by 22.09.2017 / 20:40
1
answer

When returning validation error in the form, object gets the values entered

On the screen I have a datatable that I fill in with a list of objects. Using f: setPropertyActionListener I hedge a list object to an auxiliary object and show it in a dialog. In the save method I say some validations, when it returns an error,...
asked by 22.09.2017 / 18:35