Questions tagged as 'java'

1
answer

Insert date and time to DATETIME [closed]

I have a date and time with the following value: 2017-01-27_12-52-00-9370 What I need is to insert it into the database with the DATETIME data type Thanks.     
asked by 30.01.2017 / 09:04
1
answer

Lenar a JTable with JPA

I'm new to this JPA and I know almost nothing about it, although I've researched a bit, I still can not find a way to fill the table with the Entity , the code with which I do a DefaultTableModel and try to fill the table with this...
asked by 20.10.2016 / 20:14
2
answers

Android - How to call a function from one simple class to another with activity?

I know that a very repetitive question sounds, however I still can not find what I'm looking for and I would like to ask here ... My interest is to create a class "mother" or "manager" where I have all the functions and methods that I occupy...
asked by 19.10.2016 / 22:57
1
answer

How to launch another activity by clicking on cardview?

I have a Recyclerview with Cardview s that show an image and a short description that is obtained through a JSON (with volley ), what I want is that, when I click on an item from the recycler all the information is ope...
asked by 08.11.2016 / 05:06
1
answer

Obtain the code (primary key) of a combobox

I would like to know how to obtain the code of a combobox at the time of registering, and keep it in the database with its corresponding code, not the description. This is the code that filled the combos: //METODO PARA CARGAR EL COMBOBOX...
asked by 09.11.2016 / 18:04
1
answer

Pass variable from JSP to SERVLET using AJAX

I have a list of orders and when I click on one I want to open a new page with the details of that order. I was reading and it can be done with ajax but all I saw were with form but I want you to click on the div. Orders.jsp <%@ taglib p...
asked by 08.11.2016 / 03:50
1
answer

Problem with SERVLET and JSP

I have a list of orders, when I click on one I see the detail of that order and I have a button to mark it as DELIVERED. I pass the id of the order from a jsp to a servlet and there I do the update (until here it works well), but after the updat...
asked by 09.11.2016 / 14:23
1
answer

how to change the state of a boolean in mysql jsf

How can I change the status of the seller, what I want to do is change the status by just clicking on the link, and change it in the database this is my managedbean @ManagedBean @SessionScoped public class VendedorManagedBean { private Ven...
asked by 08.11.2016 / 22:10
1
answer

Error control Scanner.hasNextDouble

I'm doing this program but I always jump to error even if you enter the correct parameter, do you know why it can be? /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choos...
asked by 17.10.2016 / 06:53
2
answers

How to create a sub report in iReport?

I created a report in iReport, which in turn has a sub report. The problem is that it prints the sub report several times. Titulo 1 Titulo 2 Titulo 3 Titulo 4 valor 1 valor 2 valor 3 valor 4 valor 1 valor 2 valor 3 valor 4 va...
asked by 13.10.2016 / 03:48