Questions tagged as 'java'

1
answer

help with jframe

I have an application that opens a jframe and I need that when it opens the same I block the application from behind, that does not let me touch the application after, that the focus of the application is in new jframe. What method of jframe all...
asked by 04.07.2018 / 15:59
1
answer

Java does not respect the Scanner

I am having problems with a java program using classes. The problem is that when I run the program name, age and career are requested when I enter the name all right, when I enter the age and give it to enter to run only run the println but do n...
asked by 03.07.2018 / 22:54
1
answer

java.lang.UnsupportedOperationException: Not supported yet

When trying to run a web application in java I get that error, what is the reason? Servlet (Comics): package controller; import java.io.IOException; import java.io.PrintWriter; import javax.ejb.EJB; import javax.servlet.ServletException; i...
asked by 09.07.2018 / 02:24
2
answers

Session variables only work in the development environment (JSP)

I am developing a website with JavaServer Pages and I am facing the following problem: The page works correctly where I am developing (use NETBEANS for it). At the moment of giving " Run Project '" the page receives the session variables very...
asked by 11.07.2018 / 00:16
1
answer

Where are the methods and actions placed in a fragment? Android Studio

I have a doubt, for example I have a menu where I manage three fragments, in one of them there is a simple form (To enter data), three EditText and obviously a button, but when I go to the fragment type file it is not logically Same structure as...
asked by 12.07.2018 / 23:23
1
answer

Problem with Dockerfile and jenkins

I'm starting with the dockerfile and jenkinsfiles and I'm pretty lost. I do not know exactly what the problem is. I'm trying to create smaller images. This is my Jenkinsfile node { // -- Configura variables echo 'Configurando variable...
asked by 26.06.2018 / 12:14
1
answer

How to set a date limit to select on a datetimepicker?

<div class="form-group"> <div class="input-group date" id="datetimepicker1"> <input id="fechInicio" name="fechInicio" class="form-control" type="text"/> <span class="input-group-addon"> <span class="...
asked by 28.06.2018 / 03:22
1
answer

IllegalArgumentException with JPA

I have this problem: SELECT monthname (h.i_date) AS m FROM History h where year (now ()) GROUP BY month (h.i_date) I execute this statement in mysql and there are no problems. But using JPA in java launches the second error: [33, 34] Th...
asked by 05.01.2018 / 16:22
3
answers

Error: illegal initializer for Object

I hope you can help me. I have something of this style in a code in a .java file: objeto = new Object[] { { H1, H11, H12, H13}, { H2, H21, H22, H23} } But the error marks me: illegal initializer for Object Am I wrongly init...
asked by 04.01.2018 / 18:59
3
answers

I need to list an arrayList in java, but only list the first element of my array

I need to list an array to show it in a table (specifically the user table with its attributes), I'm using JSTL to show the data in the JSP, the only problem is that it only lists the first object of my ArrayList, here I leave the code of the fu...
asked by 18.07.2018 / 16:18