Questions tagged as 'java'

1
answer

Send and get array of arrays js in servlet

I want to send an array of arrays to a java servlet via ajax, receive that data and go through it. Ex: var datos=[[1,2,3],[4,5,6],[7,8,9]]; $.ajax({ url: servlet, dataType: 'json', type: 'post', data: { lista: datos }, succes...
asked by 24.06.2016 / 18:22
1
answer

Problem login jsp & servlet with boolean attribute administrator in user class

I have problems to register, before I just registered as a user and it worked, now I register as an administrator and it does not enter, and if I register as a user it enters the path / admin, I leave code as it shows so that the error is seen....
asked by 18.06.2016 / 21:17
1
answer

Spring boot WebService Rest (CUSTOMIZE RESPONSE)

I want to customize the answer when it is a Status 405 Method Not Allowed { "timestamp": 1527270306717, "status": 405, "error": "Method Not Allowed", "exception": "org.springframework.web.HttpRequestMethodNotSupportedException"...
asked by 25.05.2018 / 19:58
1
answer

How to call a java event from Node JS?

I have a java application that connects to a biometric. The idea is to execute its functions from an app in node through Java. Is it possible to call this Java function from node? For example: public static void llamando() { System.out.pri...
asked by 04.09.2017 / 16:27
2
answers

problems with SharedPreferences the application stopped!

My class: conf.java public class conf extends AppCompatActivity { EditText idplacatxt; Button guardar_btn; TextView idplacalbl; private configuracion conf; @Override protected void onCreate(Bundle savedInstanceState)...
asked by 03.10.2017 / 16:04
1
answer

Capture data that are in foreach in spring

hello I have a problem is that I do not know how to get the selected data with checkbox outside the foreach in the part that says class="text-left" href="< value=" eliminar_dependencia.htm?id="/>" .. should perform the func...
asked by 28.04.2017 / 16:18
1
answer

Array overflow

I have this overflow problem in an array that I have within several objects.    java.lang.ArrayIndexOutOfBoundsException: 7       at Exercise.Visiting.run (Visitor.java:73) The code public class Visitor extends Thread { private String...
asked by 18.12.2016 / 04:30
2
answers

ArrayList.add () ArrayIndexOutOfBoundsException processing

I have searched on this page but I can not find a solution. I have the following code: class BodyThread extends Thread { private Thread t; private String threadName; private boolean isCreature; ArrayList<Creature> creatures; ArrayList<...
asked by 01.12.2016 / 19:50
1
answer

problem with Jframe netbeans POO events

I am working with events in Java Swing and it happens that in a JFrame I have uploads of three images. What I need is to know how I do so that when I press an image when I run the program it moves vertically and I can stop it with another click...
asked by 10.04.2017 / 20:56
1
answer

List linked within a Jlist in java

I have two classes one contains a linked list Catedraticos and another one containing a Jframe in which I want to put a Jlist , the listaCatedraticos contains the information of your name, surname and email as I can us...
asked by 04.11.2016 / 16:05