Questions tagged as 'java'

1
answer

'_ $ visited' property on JavaScript object on return of mapv () function from Obervable

I have a WebService implemented with JAX-RS and I'm consuming it with a service ( utilizando Angular 2 ) Follow the service: @Injectable() export class ModeloService { constructor(private http: Http) { } getAll(): Obser...
asked by 17.01.2018 / 18:22
1
answer

Create Array using result of a SELECT

public class TelaGrafico extends javax.swing.JFrame { Connection conexao = null; PreparedStatement pst = null; ResultSet rs = null; /** * Creates new form TelaGrafico */ public TelaGrafico() { initComponen...
asked by 18.01.2018 / 14:41
2
answers

Returning the total with the date in a query with SUM

I need to return a sum of the value field of table m and along with it the date of the initial field of the field sale_date , being it has an aggregate function error: SELECT sum(m.value), t.sale_date from t_transaction t left...
asked by 17.01.2018 / 18:10
1
answer

Comparison of if-else not continuing even with else in Java

I have two variables: int trabalhadorFormal; int dispensadoIndireta; And with them I'm using JOptionPane.showConfirmDialog to confirm as a kind of boolean, yes or no, for the user. trabalhadorFormal = JOptionPane.showConfirmDialog(...
asked by 06.03.2018 / 22:12
1
answer

Log in to the Wifi network through the application

When you connect to a Wi-Fi network that requires authentication, Android sends you to the network authentication page by a redirect generally sent by the link connectivitycheck.gstatic.com/generate_204 or by link clients3.google.com/generate...
asked by 31.01.2018 / 03:50
1
answer

c: forEach does not work

For some reason my <c:forEach> does not work, my normal for-each normal, in which I System.out.print works normally. MODEL: package model; public class ModeloX { private int id; private String desc;...
asked by 05.02.2018 / 19:40
1
answer

Use a ResultSet in java to print a whole table on the screen

I know that with resultSet we can do several things with a SELECT done in some table. For example: I know we can get a table and print its contents, listing which columns we want with methods like: getString and getInt. Conection con = ..........
asked by 30.01.2018 / 00:22
1
answer

Copy JTable column to Clipboard?

Here I have a table template with 4 columns and several filled lines that I get in the database. I would like to create an Action button that copies columns 2 and 3 at once to the clipboard, so you can paste, for example, into an Excel or other...
asked by 29.01.2018 / 11:37
1
answer

JPA Error inserting a product object that has reference to an existing object

I'm having a doubt in the manytomany annotation, I know the same is meant to indicate to white that it needs to create a broker table and that in turn is located above an element that will be list public class Produto { @Id @GeneratedValue(str...
asked by 25.04.2018 / 12:38
2
answers

Application with JBOSS Wildfly respond through DNS

I'm extremely beginner in this environment setup part and need to put an application that I developed into production. I already have a registered domain and I would like the user, instead of typing IP: 8080 / APR, could enter the domain of the...
asked by 25.04.2018 / 17:13