Questions tagged as 'java'

2
answers

Download Excel

I have a function that creates an excel file, however the function that the excel generates saves on disk. What I want to know is how to get the excel that I generate can be downloaded by pressing a button from a form of primefaces. xhtml:...
asked by 29.03.2017 / 19:02
1
answer

Predetermine values in a Java vector

Hello friends I want that in a vector using System.out.print You can predetermine values in the vector, example: Alumnos[] - I want to predetermine values .. as names in the case of that vector, in JAVA, please help me?.     
asked by 18.05.2016 / 03:51
2
answers

Obtain remote data using Loopj

I am using loopj to log in and register using a remote WebService that uses MySQL to store data. I have the WebService configured so that when a user logs me, I get a response in the "Json" type object format: { "estado": 1 "ususrio": { "use...
asked by 05.06.2016 / 21:32
2
answers

Validate that a range of dates is not already in a table of date ranges (from-to)

What I need is to verify that a new date with a new rank is not between dates that were previously entered in an example database. fecha_inicio fecha_fin 10-10-2010 15-10-2010 16-10-2010 19-10-2010 If I wanted to enter a date l...
asked by 07.03.2017 / 16:30
4
answers

NullPointerException when adding a "Vehicle" in Java

I'm practicing a bit of Java, so I set out to do a little program to add Vehicles and inheritance. But clicking on the "Load" button throws me a NullPointerExcpetion . My code for the Load button: String nombreTitular = txtNombreTit...
asked by 28.07.2016 / 21:16
1
answer

Mysql inform changes in bd to app java

Is there any way that when a table inserts a certain value example state: positive or negative "warn", and not having to make an inquiry from the application every x time making a query?     
asked by 15.08.2016 / 22:00
1
answer

Problem "java.net.ConnectException: Connection timed out"

I am working with WebLogic and I have a web service that returns a list of the database and also sends it by e-mail (gmail). The problem is that, in my local environment everything works very well, the list returns the web service and...
asked by 03.10.2016 / 18:39
1
answer

Error between Dao and Bean class

I have a problem I am doing a login with jsf and hibernate, I make the query between 3 tables, I ask for the id and the password and it returns the name of the position and in the bean depending on the position it has to go to a different view ,...
asked by 09.08.2016 / 02:50
3
answers

Ternary operator '?'

The ternary operator ? java is giving me error using it in the following way: ArrayList <String> titleTabs= new ArrayList<>(); ArrayList <String> countTitleTabs= new ArrayList<>(); public ViewPagerAdapter(ArrayL...
asked by 30.01.2017 / 12:20
3
answers

Two-dimensional arrays [closed]

I have to make a program in which I use two-dimensional arrays. The problem is like this: Program that gives the option of entering 5 names and 5 types of fruits in a two-dimensional matrix and at the end that the option appears to the user o...
asked by 03.11.2017 / 18:40