Questions tagged as 'java'

2
answers

Inserting data using JPA

I need help saving the data of an application using JPA. I followed a tutorial that only helped in the implementation of the login but did not show how to save the data. In this case, I'm trying to register a user. When I click save it shows an...
asked by 23.05.2017 / 16:51
1
answer

What dependency on Demoiselle 3 should be included in a Maven project for JSF use?

I have several applications built with Demoiselle 2.4.2 + JSF + PrimeFaces + Hibernate and would like to proceed to Demoiselle 3. In the dedicated portal for this version ( link ) there is an example of Maven dependency, as seen below: <par...
asked by 23.05.2017 / 15:32
1
answer

Error compiling code in eclipse

I have a small problem compiling this code, after I compile the following error appears:    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:   10 I looked in other places, and they said that this error occurs when you'...
asked by 22.05.2017 / 23:18
3
answers

Remove last character from a string, when the character is a blank space [duplicate]

Good afternoon. I'm programming in java and I want to get the initials of a name, in case: "Jonas Barros Santos" You have to see: JS The code I use does this, but if the person puts the name with space at the end, my code does no...
asked by 09.05.2017 / 18:30
2
answers

Problems comparing objects from a list

I'm trying to compare an object from a list before inserting it into the database, but it returns the address of the object. Follow the code. DAO class method public List<ServicoVO> verificaNome(ServicoVO servico) throws SQLExcepti...
asked by 10.05.2017 / 01:29
1
answer

add in the JAVA Text file

In my code I wanted to add to the file but I can not, it always deletes the content from before. package classejava; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.lang.reflect.Array; import...
asked by 16.05.2017 / 01:19
1
answer

Email with JavaMail copy

I have a system that sends email, it works normally, I want to insert a field to send copy of the email, a CC or CCo. here's a snippet of my code below. Entity private String destino; private String titulo; private String mensagem; M...
asked by 16.05.2017 / 13:07
1
answer

Error closing Intent.ACTION_VIEW

I see an image with Intent.ACTION_VIEW and when closing the following error occurs, I am thinking it is in MainActivity.class: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.emerson.barcellos.mgordenservicopremium, PID:...
asked by 26.04.2017 / 03:59
2
answers

I am Inciante, and I have a problem with an issue, in the part of instanciar the objects

Create a Client class, considering that it must have: Constructor It should have the default constructor and a constructor that should only have the client code as a parameter. Attributes • Customer Code • Full Name Methods • Inser...
asked by 20.04.2017 / 21:47
1
answer

Error Resolving Template "MeuTemplate", template might not exist or might not be accessible by any of the configured Resolvers SPRING Template

Performing an ajax request function buscarDisciplina(){ var codigoDisciplina = String($("#codigo").val()); $.ajax({ url: urlApplication+"/grade-curricular/buscar-disciplina/"+codigoDisciplina, type: 'GET...
asked by 20.04.2017 / 16:13