Questions tagged as 'java'

1
answer

Problems with image localization in Spring Framework

I'm using Spring and Thymeleaf: I have an image in the directory:    resources / image / telescope.png When I open the posts.html (home) page, located at the address below, the image is displayed.    link Code to call the imag...
asked by 05.07.2017 / 19:10
1
answer

Problems in JPA, @OneToOne and mappedBy

I have three classes, Person, Client and Address, being Client of Person's Child and Address by adding Person. Follow Person: @Entity public abstract class Pessoa implements Serializable { private static final long serialVersionUID = 1L; @...
asked by 05.07.2017 / 19:53
1
answer

Check if there is a file in a certain folder rendered jsf

Personal I'm saving image to a particular project folder and I need to check if this file exists in the folder. I was using a command as below: rendered="Fotos/#{consultaFuncionariosBean.pessoaModel.codigo != null}.png" But it did not work....
asked by 05.07.2017 / 15:50
1
answer

Access a method that is out of thread

I have a video running in my application and a Thread running a Socket (server), all within the same class, but I need this Thread to access a method that is outside of it. To be more exact I want to run getCurrentTime () to get the current t...
asked by 16.05.2017 / 19:59
2
answers

Inclusion of data by the operator

I build the code below but when I enter the data the system has an error. package tarefaBD; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException;...
asked by 20.05.2017 / 21:42
1
answer

Error performing findviewbyid

Hello, I want to find the id of two Textviews, but they are returning NULL. Here is my code: private TextView nomeUser; private TextView cargoUser; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInst...
asked by 27.06.2017 / 17:11
1
answer

How to work with Log in Java? [closed]

I need to make a condition based on the Log of my Java project. Ex: Enquanto(TextoDoLog == "PalavraTal"){ faça algo; } But I do not know if I have to create some class, or method, how to handle it.     
asked by 25.07.2017 / 17:47
1
answer

Proxy configuration in java on Linux system

I have proxy configuration on my network, and to run run the java I need to set the proxy properties on it, this in linux. In Windows it is not necessary, it is working perfectly.    "Exception in thread" main "java.net.UnknownHostExceptio...
asked by 26.09.2017 / 14:54
1
answer

How to create a date search method?

I can not in any way create a date search method that works. I have already been able to register the date and the other attributes as well. I've already been able to list all the attributes and also search all attributes quietly, minus the d...
asked by 28.09.2017 / 21:48
1
answer

Import github code into eclipse Oxygen

I have a code that I would like to import into my eclipse through the zip download, however at the time of importing the following error    No projects are found to import How to import a Java project from github to my eclipse...
asked by 04.05.2018 / 05:00