Questions tagged as 'java-ee'

1
answer

Hide database records instead of deleting them [closed]

Recently I had the need to do a car crud, using Rest, Java EE, Angular v.6 and the database in SQL server, but with the difference that instead of deleting the records, they only they are hidden from the user and kept in the database. I want to...
asked by 14.11.2018 / 20:16
1
answer

Help with JPQL to make a kind of filter with LIKE JAVA

I have a problem. I want to make a JPQL , and make a kind of filter that lists me the type of merchandise that have similarity with the name specified by the user. @Override public List<TblStock> findByName(String nombre) { Typ...
asked by 14.07.2018 / 00:47
1
answer

How to make different actions when pressing a button?

I have found myself in a problem when doing a Java program, and that is that as I have the code it does not matter what button I press that is always going to execute the command of button 1 I think it is because I am wrongly selecting what what...
asked by 09.01.2018 / 15:18
1
answer

Foreach de java me sobre writes the objects

Friends, I have a foreach in java that runs through a list to fill another and send it to my jquery, but I realized that the for is overwriting the objects. Ex: listingMethod (id) [0]) = 'samsung' and listingMethod (id) [0]) = 'iPhone 6...
asked by 29.10.2017 / 02:30
2
answers

ViewScoped does not work

I have a Bean that has @SessionScoped and works perfectly, however I want to use @ViewScoped, but when I change the annotation it stops working and it always marks me the Target Unreachable error @ViewScoped I'm importing it with: import ja...
asked by 16.02.2017 / 18:45
2
answers

Upload file to Java server ee

Excellent community! :) I bring you a query. I am trying to make a form with Java that receives a text, a date and a file. The file is uploaded to the server, gets the link from the file, and stores it in a database. First I had done the part...
asked by 17.10.2016 / 19:48
1
answer

Jsp does not recognize Javascript files

I'm doing a web application with JavaEE and I need to pass certain parameters from a Servlet to a Jsp, I do it like this: request.setAttribute("car", per.getCarrera().getNombre()); And for the redirection: request.getRequestDispatcher("/o...
asked by 20.10.2018 / 23:05
1
answer

Object in Spring form

I have a form in which I have some input in which when filling in with js I pick them up and add them to a hidden input that I have on the page. document.editRouteForm.itinerary.value = itiToObj(); document.editRouteForm.itinerary.value = JSON...
asked by 18.05.2018 / 12:32
1
answer

WEB9102: Web Login Failed

My problem is that I am trying to create a login in JSF 2.2 with Java EE 7, Glassfish 4.1.2, PostgreSQL database and I have already configured the realm in glassfish revised tables, fields, files and can not find several times the error so as to...
asked by 12.11.2017 / 02:49
1
answer

how to send an email in java web with the javax.mail.jar library

I am using jsp, servlet and classes in java to send an email from a form, it works on the PC locally using payara 4.1 and netbeans from one gmail to another but when I upload the application to a java host do not send in the mail I have the appl...
asked by 07.01.2018 / 03:01