Questions tagged as 'java'

1
answer

Access a JSP variable from another JSP

I have a jsp menu.jsp <li <% if(pps_pag==1){ out.println("class='active'");} %> > <a href="usuarios.jsp" onclick="javascript:$('#cargando').modal();"> <i class="fa fa-users">&...
asked by 21.05.2017 / 14:54
1
answer

How can I fill several JTexField with the contents of an ArrayList?

The specific doubt is that you create JRadioButton in a dynamic way, that is, depending on the amount that exists in an ArrayList. From the FileManager class the user information is brought and it is required to show in its respective JTextField...
asked by 20.05.2017 / 19:19
1
answer

Problem with map

I have a problem, I want to make a user login program with the Map interfaces, but in my class "password" does not let me use the put method to start the programimport java.util. *; public class Main{ public static void main(String[] args)...
asked by 21.05.2017 / 04:36
1
answer

Fill modal with data through ajax and web services

I have a project where I must fill a modal window from the database using Ajax, I will explain the project, I have the web services rest in C # and I am consuming it from Java 2EE with servlet and a class called Web Services, but at the momen...
asked by 22.05.2017 / 03:16
1
answer

Android. Perform independent process to the activity

In the MainActivity my APP has a button to open a Google Maps activity and show you some coordinates that you receive from a Raspberry Pi. The problem is that I do not know how to make the coordinates update while the app is still working. Th...
asked by 25.05.2017 / 08:32
1
answer

How to operate a combobox with an if

How can I use a comparative if with an item combo box, if I want to push a button I draw a geometric figure     
asked by 20.05.2017 / 04:12
2
answers

Is it important that a method of an interface is implicit in a class first?

   Implementing the interface methods should go first and then the   rest, it may be that when for example I implement an interface first to   that works and add the rest, then if I implement it later more after the rest will give error .....
asked by 25.05.2017 / 10:31
1
answer

How can I pass several items in another activity

I have a list full of items, and I wanted to pass 3 of the items in another activity, then I go back to the list to go through 3 other items more ... so on (the chosen items should appear as a list). This is my code: @Override public void o...
asked by 22.06.2017 / 15:04
1
answer

Create JSTL accumulator

I am creating a page using JSTL and I want to create a variable that accumulates a total within two forEach <c:forEach var="mesas" items="${result.cuentas.mesas}"> <c:forEach var="saldoMesa" items="${mesas.saldo}"> Aqui quier...
asked by 15.05.2017 / 18:50
1
answer

Compile and run Java file without IDE: Error, main class not found

In my programming class we were asked to make a simple program and compile it, run it and create a .jar from the CMD in windows (WITHOUT IDE); which I still do not know how to do, because I always used Netbeans. The file path is:    C: \ J...
asked by 11.05.2017 / 01:00