Questions tagged as 'java'

0
answers

Is Bean Validation in JavaServerFaces considered Validation on the server side?

Esoy developing a project with JavaServerFaces which is structured in a MVC model and I have to implement validation on the client and server side. The question is when applying Bean Validation with annotations in the controller Bean, it is cons...
asked by 06.07.2018 / 10:52
1
answer

Arrangements, random numbers and compare

Occupy helps, I have to make a program that fills two arrays with random numbers, then compare sume two numbers of an arrangement and compare them with the sum of the second, and indicate which is the largest number. The problem is that I do...
asked by 12.07.2018 / 15:59
0
answers

How to use the "IF" statement with Mysql (JavaSwing)

I know I should learn a little more about java & MySQL, my apologies, but I need you to clarify this question or help me with a small code. What I want to do is the following: - I have a table of users but I want that when a user places h...
asked by 05.07.2018 / 01:57
0
answers

Problem when modifying data from an Array

I have an array of statistics where I keep the statistics of each level, letter. ContentValues valors = new ContentValues(); valors.put("user_id", id); valors.put("letra", "b"); valors.put("jugadas", 0); valo...
asked by 04.07.2018 / 11:27
0
answers

how to add a condition to an item in a JComboBox to show another JList? in JAVA

if (comboCantidadGustos.getSelectedItem().equals(3)){ modelGustosDisponibles.addElement("Solo Vainilla"); } else { modelGustosDisponibles.addElement("Mousse de Limón"); modelGustosDisponibles.addElement("Frutilla a l...
asked by 03.07.2018 / 15:27
1
answer

Send js list to a Spring Java controller

I hope to receive a list in my controller that is sent by ajax , in Java but I get an error:    Non-type collection, that is, it does not match. Any other way to stop it? JavaScript var itms = []; for (i = 1; i < 10; i++) {...
asked by 03.07.2018 / 16:10
0
answers

Tree in binary tree

I am creating a genealogical tree in java, however, the saved data must be string, they must have the possibility of having several brothers and the parents must go to the left, mothers to the right. My problem is the creation of this tree itsel...
asked by 05.07.2018 / 06:43
1
answer

With what function do I find the position of a letter within a string?

I want to know in what position the letter "x" is located within the variable "equation" public static void main(String[] args) { /* Resolver una ecuacion de primer grado con 1 variable ejemplo: 2x-1=5x+8...
asked by 05.07.2018 / 02:13
0
answers

Time limit to re-select a data

Hello everyone I am developing a desktop project in netbeans , but I want to add a restriction when selecting a data, that is: I have a frame where I show the employee data and also a botón that opens another frame whe...
asked by 05.07.2018 / 08:41
0
answers

Error in Java EE login

I'm trying to login to Java EE with a MySQL database. I am capturing the parameters from the form and sending them to a servlet as shown in the following code. index.jsp : <form action="./Login" method="post"> <div...
asked by 07.07.2018 / 01:46