Questions tagged as 'java'

1
answer

JSP does not recognize servlets

I am developing a project in jsp with Netbeans (I have already developed several) but in this unlike the previous ones that I have developed I have decided to organize the code much better by classifying it in folders (the jsp files inside the r...
asked by 23.09.2017 / 04:19
1
answer

How to show a Json structure in Android:

Json response format { "status": "success", "message": { "affenpinscher": [], "african": [], "airedale": [], "akita": [], "appenzeller": [], "basenji": [], "beagle": [], "bluetick": [], "borzoi": [], "bo...
asked by 23.09.2017 / 00:37
1
answer

I want to enter numbers between 0 to 20 and that a message says saying nros outside the interval if it is not fulfilled but using exceptions

package excepciones; import java.util.InputMismatchException; import java.util.Scanner; public class excepcion2 { static void rango(int num)throws calcular { if((num>20)||(num<0)){ throw new calcula...
asked by 20.09.2017 / 20:45
0
answers

How to pass values from SQL server to MPAndroidChart bar chart?

I have a sql database with data which I need to go to a bar chart graph. import android.os.StrictMode; import android.provider.ContactsContract; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.R...
asked by 18.09.2017 / 22:56
1
answer

Receive postgres table in java

I have the following function in postgresql: CREATE OR REPLACE FUNCTION public.sp_sel_categoria(IN _codigo integer) RETURNS TABLE(acat_cod smallint, acat_nombre character varying, acat_descrip character varying) AS $BODY$ BEGIN IF _codigo =-1...
asked by 19.09.2017 / 18:43
0
answers

How to "parse" an XML file?

My problem is this: In my android project I am using an API that provides data on the weather forecast of a city, I retrieve this data in an XML file; my problem is that I can not "separate" the data by label to manipulate the condigo is as f...
asked by 21.09.2017 / 18:45
0
answers

close Jframe without closing all the windows

I have more than one JFrame, I open the first one, and from there I open the second one, for example, but when I close the second, I also close the first one, and I want it to be open, for now I have this code: This is what I use to "no...
asked by 16.09.2017 / 02:34
1
answer

java, log4j problem with hsqldb

I am using JSF with HSQLDB 2.3.4 as the database. When executing the search for an element, it throws the following error log4j:WARN No appenders could be found for logger (hsqldb.db..ENGINE). log4j:WARN Please initialize the log4j system prop...
asked by 16.09.2017 / 21:47
1
answer

trayIcon displayMessage does not appear in the taskbar java

My problem is that I do not get the message in my taskbar using a displayMessage I have the following code: private JFrame parent; private PopupMenu popup = new PopupMenu(); private final Image image = new ImageIcon(getClass().get...
asked by 13.09.2017 / 02:04
1
answer

The data of an Array is deleted -Java

I have to do a reservation management program in a hotel. It has different classes as Client and Room. From the View class, I send data to Controller to be forwarded to HotelDao. The data enters the reservation array within the HotelDao class. B...
asked by 13.09.2017 / 03:11