Questions tagged as 'java'

1
answer

Send data from a form to an Action using struts2, AJAX, and jquery dialog

Good, I'm trying to collect the content of a form from an Action, but I always get null . What I have done is: JSP: <s:div id="popup-usuarios"> <s:form name="formEditar" id ="dForm" method="post"> <s:textarea id="data"...
asked by 18.07.2017 / 13:55
0
answers

Reposition a window and bring to the front?

I have created a window that shows a loading animation that says "Loading next data" . My idea is that when the client presses a certain button the window appears with an animation while loading a record and then disappears. The fact is tha...
asked by 07.07.2016 / 09:00
0
answers

Help with Huffman Binary Tree JAVA coding with strings

public String codificar(String text) { String res=""; if (!text.isEmpty()){ for (int i = 0; i<text.length(); i++){ res+=busquedaDelCaracter(text.charAt(i), this.huffmanTree, this.huffmanTree.root(), res); }...
asked by 05.12.2016 / 05:18
0
answers

Unit Tests with TESTNG in Maven

I am developing unit tests with the TESTNG framework and I have encountered a problem when obtaining the coverage report. Steps: I launch the Maven project. clean org.jacoco:jacoco-maven-plugin:prepare-agent install The execution...
asked by 16.12.2016 / 14:25
1
answer

BigDecimal Round UP OR DOWN

I have these two scenarios working with bigdecimal: BigDecimal result; escenario 1: result = 19315859.60145000000000 ---[should be]--> 19315859.6014 escenario 2: result = 66841687.43665000000000 ---[should be]--> 66841687.4367 The p...
asked by 18.12.2016 / 18:38
1
answer

Problem with POST form in html5 and jsp

At the time of declaring a form html in a jsp. the program runs but the class says "Element 'UserHandler' not found", because I get this error? these are my files user.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-...
asked by 23.06.2017 / 07:50
0
answers

Exception when Inserting in the Oracle DB

The error message is as follows:    2017-06-23 10: 35: 07.365 ERROR 888 --- [nio-2019-exec-1]   o.a.c.c.C. [. [. [/]. [dispatcherServlet]: Servlet.service () for   servlet [dispatcherServlet] in context with path [] threw exception   [Request...
asked by 23.06.2017 / 18:25
3
answers

How to CONSUME a REST web service with Spring (Java)?

Good morning. My question is, how can I consume a REST web service from my application that is made with spring framework ?. The spring documentation tells me that I can do it with restTemplate. For example to obtain data: restTemplate.getForO...
asked by 27.07.2016 / 16:05
0
answers

How to configure single sign on (SSO) in Wildfly 10?

I currently have a login and several wars and I hope that by logging in I can pass my User object per session to the other wars. How do I configure my Wildfly 10 server so that all my wars developed in JSP can communicate without having to cr...
asked by 17.06.2016 / 00:13
1
answer

Android - Unity3D 5: CommandInvokationFailure: Failed to re-package resources [closed]

At the moment of giving the build button in unity3d 5, the normal process begins, and in the middle it throws the error. This is what the console says:    CommandInvokationFailure: Failed to re-package resources.   C: \ Users \ Walther \ AppD...
asked by 14.06.2016 / 06:25