Questions tagged as 'java'

1
answer

Error in REst response in java, object is not displayed correctly

Good morning, I have a problem with the response of rest services in java, I used a generic object type to standardize the answers but when I add objects to this object and it becomes Json it does not convert well, this is the object: public c...
asked by 05.05.2017 / 14:44
1
answer

Error validating ticket in CAS server

I'm trying to mount a CAS (central authentication server) In the xml of the application I put something like this: <!-- Filter to handle logout requests sent directly by the CAS server --> <filter> <filter-name>CA...
asked by 05.05.2017 / 11:28
1
answer

Can you have several different JFrames and save them in a single hashmap? Then get your own methods and attributes?

This is my idea. I have two JFrame form_guardarDatos and form_mostrarDatos . I want to save them in a hashMap and then use that hashMap to invoke them in a main class. For example to obtain the data to be saved by invoking mapa['k...
asked by 29.04.2017 / 15:38
0
answers

Fragments with Navigation Drawer

How can I add a navigation drawer to a fragment. I need to be able to load a minor hamburger into a fragment, which can in turn load other fragments depending on the selection without losing the navigation menu. I have seen that in android st...
asked by 04.05.2017 / 14:34
0
answers

Why do not they upload the data from the BD with JSP?

I have this singleton class of connection to an Oracle Database 11g express edition database: public class ConexionDB { private static ConexionDB _conexion; private Connection connection; /** * */ private ConexionD...
asked by 29.04.2017 / 23:50
1
answer

Help with FileReader

I have a query that is happening something strange in my code, I put the code and I continue to explain public void leerPuntuaciones(){ try { String puntuacion1 = ""; BufferedReader bf = new BufferedReader...
asked by 04.05.2017 / 04:35
0
answers

Why does hibernate create the id column when I specify another primary key?

I'm working on OpenXava , a framework based on Java , and when using Hibernate I create a column called id in database ( MySql ), even if specific in the class that the key would be is called login . I put the cod...
asked by 04.05.2017 / 13:41
1
answer

Crud with high netbeans of one record of one table dependent on another

protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("txtId"); String nombre = request.getParameter("txtNombre"...
asked by 17.05.2017 / 19:32
1
answer

Open file with an object that stores another object (ArrayList wrapper)

Good, I am having problems to be able to advance with a project, the question is that I have an 'Exhibition' class, which in turn has a 'Works' field that is an ArrayList package. When I save my class Exposure does not jump any type of error, it...
asked by 26.05.2017 / 09:08
0
answers

How to get specific data of a node in Firebase, or the specific Data of a Java Object

I have these nodes, each of these nodes contains data, They are structured in this way In the "MainActivity" I have a map, on the map there are three markers Each one of these markers contains data which are so I rescue the dat...
asked by 05.05.2017 / 02:47