Questions tagged as 'java'

1
answer

How to separate a PDF file line by line in Java?

I need a way that I can read line by line from a pdf file. I'm reading the entire pdf file at once from this command line: String conteudo=PdfTextExtractor.getTextFromPage(reader, 1); But I need to read row by line, since I need to know...
asked by 11.04.2014 / 16:27
2
answers

How to store state of a checkbox

I'm developing an application to make a school call list, I created Listview and populated it with data from a Mysql database, using Json . The problem is the following, I need to store the state of the selected checkbox...
asked by 06.04.2014 / 05:28
1
answer

How to compare Date with field in MySQL

I'm new to Java and I have a table in MySQL that has a field of type date and dates are stored in yyyy-mm-dd format. Now I need to retrieve only the records whose date field value is greater than or equal to today's date. I'm trying...
asked by 25.06.2014 / 23:19
1
answer

Spring MVC in HTML pages without JSP

1 - Is it possible to use data sent by Spring Controllers in HTML pages (using HTML5 tags), not to use JSP? 2 - If it is not possible, how can I make JSP pages with Spring MVC with minimal Java code intrusion on pages? 3 - Does the Bootstr...
asked by 10.07.2014 / 01:22
1
answer

Lazy Load OneToMany

Hello. I'm having difficulty running my fetch = FetchType.LAZY relationships with the @OneToMany annotation. In my entity Nota Fiscal, there are several lists fetch = FetchType.LAZY, when loading the object by id, I load all these lists with...
asked by 22.09.2014 / 19:46
1
answer

How to change the language of exceptions thrown during automated testing

Using Eclipse (IBM RAD Studio), Maven, and JUnit, when an exception is thrown while running tests the message is displayed in Portuguese. I would like it to be shown in English. Example: org.apache.openjpa.persistence.ArgumentException:...
asked by 04.09.2014 / 22:28
1
answer

TimeTask scheduling Tasks in Java

I'm trying to set up some task cycles in TimeTask so that it happens every day at a particular time, could someone give me a tutorial or some example that employs this question? What happens is that it works, but only once, if by chance I try to...
asked by 11.09.2014 / 15:52
1
answer

Binding in Spring MVC not working

Well, I have a problem that has never occurred to me before regarding Spring MVC binding. I have a form as below. The bindind "firstName" and "lastName" tags work fine, but the "logins.email" <f:form class="form-signin" method="post...
asked by 02.09.2014 / 19:04
1
answer

SSL Encryption Socket Java

I'm having second thoughts about the Java Socket SSL. I have seen on several sites that the SSL Socket connection is encrypted, but none of the sites gives me information on how this works right. How do I know the message is being encrypted...
asked by 07.09.2014 / 05:37
1
answer

Spring FileCopyUtils With Strange Behavior

I do not know if anyone here uses the FileCopyUtils offered by Spring , but I'm using an image replication method on my system. It aims to "get" the images that are in the temp folder of my system and replicate to another connect on the serve...
asked by 27.08.2014 / 00:25