Questions tagged as 'java'

1
answer

Read xml with XStream

I have an exercise on reading xml in java. My teacher indicated using the XStream library and I can not. I read about the documentation but could not identify the problem.  I have Transaction class with all variables and its gets and sets. I use...
asked by 12.10.2018 / 20:54
1
answer

Division and Conquer Algorithm

I'm having trouble getting an algorithm to divide and sum the elements of an array. public static int somatorio(int[] a, int numElem) { if(numElem == 0) { return 0; }else if(numElem == 1){ return a[0]; } int meio...
asked by 14.10.2018 / 00:59
1
answer

How do I download a file that is in Storage by my app (Adnroid Studio)

I took a look at the documentation provided by Firebase and even then I did not understand how to download a file that is in Storage by my app using Android Studio, can anyone help me?     
asked by 13.10.2018 / 17:49
1
answer

Switch from second to third activity [Android Studio]

How do I change from the second to the third screen ?? I was able to switch from screen1 to screen2 (from Main to CadastroActivity ) Except that, using the same code, I can not get from screen 2 to 3 (from CadastroActivity...
asked by 13.10.2018 / 02:10
1
answer

How to fix this and other errors: Failed to convert from type [java.lang.String] to type [java.lang.Long] for value 'list'?

I'm implementing an example of a book on Spring Boot , but after executing, when trying to access the /clientes/list or /clientes/view route in the browser the following errors appear:    Failed to convert value of type 'java.la...
asked by 14.10.2018 / 07:56
1
answer

What is the correct way to run a web application in eclipse?

I'm studying JSF using the eclipse IDE, but I'm encountering a certain problem when running my application. When I run the application by clicking on top of the project itself, it does not seem to load my created template. Here's an example:...
asked by 13.10.2018 / 23:19
1
answer

Ajax Request Returning in White

Alright? My question is this: I am making an ajax request for my servlet and its return is being blank. JS: $('#pesquisar').click(function() { $.ajax({ url: '../UsuarioController', type: 'POST', data: {nome_pe...
asked by 15.11.2018 / 20:35
1
answer

Variable error stmt of type Statement

To try to execute the table, however in netbeans it is alerting the error in the line of ExecuteQuery.   Symbol: method executeQuery (String) location: variable stmt of type Statement The error is highlighted, netbeans alerts the message...
asked by 29.11.2018 / 10:37
1
answer

How do I configure the timeout of a function call from an EJB?

At the end of a service my project has a function that takes an EJB from another project that is installed on the same server, and access one of its functions. My function that takes the EJB and accesses the function: [...] ServiceImplRemo...
asked by 26.09.2018 / 16:10
1
answer

Calling a servlet in a popup

Good morning, guys ... How can I execute a servlet by opening it in a popup and passing 1 parameter? My code looks like this: - In the page that calls <form name="frmcadentidade" method="get" action="DetalheEntidade"> <input typ...
asked by 27.09.2018 / 15:22