Questions tagged as 'java'

1
answer

Problem about web certificates when I have 2 applications

good morning. Work with: Ubuntu 16.04 Tomcat 8 Java 1.8 (jdk) I'm trying to set up a Tomcat server where I run two applications: A) CAS server with security running on port 8443 B) Web application to which CAS...
asked by 07.06.2017 / 11:47
1
answer

Problem with ResultSet in Java / MySQL

Very good, companions. I am having a certain problem that I still can not identify well in Java with a ResultSet that I use, it throws me an error of java.sql.SQLException: Operation not allowed after ResultSet closed and I still can not iden...
asked by 06.06.2017 / 17:01
1
answer

Error sending email with android

Good I want to send emails but I get an error and I do not know why, the password is set correctly The code is as follows: public void enviarCorreos(){ final String correoEnvio = "[email protected]"; final String contraseña...
asked by 28.05.2017 / 15:51
1
answer

Why use FROM with Hibernate?

I have been working with Hibernate for some time and I do not understand why they are complicated when making bbdd queries: Root<Foo> fooRoot = criteriaQuery.from(Foo.class); Join<Foo, Foo1> foo1 = fooRoot.join("foo1", JoinType.LEF...
asked by 26.05.2017 / 09:59
0
answers

Difference between using android: colorPrimary and colorPrimary in the XML theme - Android

I have a question, in many courses I see that for certain cases they put "android:" in the name="" of the theme .xml file in the res directory, what is the difference between putting them or not? "     
asked by 27.05.2017 / 01:56
2
answers

How to separate a long string array and print everything

I have this arrangement that is returning the string "object" and I'm doing a split in "," . The idea would be to return each piece of string separated just in "," and that each one has a position in the array with its value, but not all v...
asked by 08.06.2017 / 13:15
1
answer

The app stops when you want to open another activity

When trying to open another activity the App stops, I have a activity with a TabsHost and I try to open another one with a TabHost . I leave the code, I hope you can help me: The java of MainActivity @Ove...
asked by 28.05.2017 / 04:48
1
answer

I want the combo box to save the code of a field?

I'm doing a personal project, I have two tables: |---------| |Area | |---------| |Cod_Area | |Nomb_Area| |Ubicacion| |---------| |---------| |Empleados| |---------| |DNI | |Nombre | |Apellido | |Cod_Area | |Celular | |Cargo...
asked by 26.05.2017 / 22:15
2
answers

ArrayList () prints true when traversing it

I have the following function that generates a ArrayList but at the moment of traversing it, it returns true. How can I see the content? public static ArrayList ordenaNodos(ArrayList nodeList){ ArrayList cfdiList = new ArrayLis...
asked by 09.06.2017 / 16:49
1
answer

Label S: Select struts2 jdbc

Hi, I'm learning Struts2 , I'm doing a registration form but I have a question about how I can pull the records that are in a table to the s:select tag (I practically want to make a > combobox pulling data from a field in a sql table)....
asked by 30.05.2017 / 21:53