Questions tagged as 'java'

2
answers

Format the name of a file to save Java - Spring MVC / Struts2

I am looking for a way to save a file, although I have the logic to capture it, I am saving it with the name of the image, what I would like to do is capture the file and format the name for example Date_file_name to be avoided if you upload...
asked by 28.07.2017 / 18:21
1
answer

Change the way to automatically order the code in netbeans 8.2?

In netbeans in the code of a project, when you press: Control + Shift + F Reorder the code automatically, but reorder it in this way: try{ if(1>2){ } else { } }catch(Exception e){ } My doubt comes, in that if the...
asked by 29.07.2017 / 21:21
1
answer

Is there a Play Store Intent that is launched when an app is installed?

I want to know if there is any Intent that Play Store click every time an application is installed correctly, I have seen that there is a call INSTALL_REFER but this is for campaigns and analytics, basically what I'm looking for is to...
asked by 22.07.2017 / 07:24
1
answer

When creating EntityManagerFactory with the Persistence unit the program stops JAVA

I have a problem with my web application that I am developing using JPA, which worked fine until yesterday. With the help of Java DEBUG I have executed line by line and I noticed that the problem is sometimes in the EntityManagerFactory ,...
asked by 11.07.2017 / 17:00
2
answers

How can I pass mysql query fields to ireport?

When making an sql query the fields vary and I do not know how I can do so that ireport shows me those fields with their data when I run it. Axis: Query 1: SELECT col1, col2, col3 FROM table; but the report can also receive this other query SELE...
asked by 13.07.2017 / 19:19
1
answer

Virtual keyboard in a JFrame

Good friends I need help with a form that uses a virtual keyboard, this keyboard is in jPanel , at the moment I have only been able to program it so that the text is entered in a single jTextFIeld , I am looking for the way that t...
asked by 13.07.2017 / 09:30
1
answer

Count the number of 5.0 from the start of a List-Linked

I try to solve a function that returns the position of the first '5.0' from the beginning in a LinkedList. I must return a negative number if the list is empty or if the first item on the list is not a '5.0'. The function passes the tests whe...
asked by 17.07.2017 / 18:21
1
answer

Property not found in java.lang.string

Good afternoon, I have a web application and I want to return data to a jsp, but when I log in, it does not show anything on the screen (blank screen) and I get the following error: GRAVE: El Servlet.service() para servlet jsp lanzó una ex...
asked by 05.09.2017 / 22:45
1
answer

Problems grouping with ArrayList

Good evening everyone! It seems a lie that stuck in a very simple task, I have the following java code that consists of a simple constructor that contains an integer. Yes or if I have to use Java 7 for the implementation. List<Prueba>...
asked by 06.03.2018 / 00:02
2
answers

Check Sqlite column and modify the data

I have a Sqlite : public class SqliteDatabase extends SQLiteOpenHelper { private static final int DATABASE_VERSION = 1; private static final String DATABASE_NAME = "DB_NOTAS"; private static final String TABLE_NOTAS = "NOTAS...
asked by 29.06.2017 / 21:04