Questions tagged as 'java'

1
answer

Given two numbers A and B, is a third C created by alternating the first two? [closed]

Given two integers A and B, create a third integer C by following the following rules: The first number of C is the first number of A; The second number of C is the first number of B; The third number of C is the second number of A; Th...
asked by 22.09.2016 / 19:44
1
answer

How to pass information from a JSP page to a Servlet

I need to pass information from a String variable that is on a JSP page to a Servlet. For example: String path="C: \ test.jpg"; How do I get this information in the Servlet?     
asked by 22.09.2016 / 19:28
1
answer

Thymeleaf can not find resources

I am creating a project with Springboot and Thymeleaf . I have set up the whole project, found the template and the pages, so my template can not find the css and js Html <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.m...
asked by 19.12.2016 / 00:22
1
answer

Conversion from hibernate result to json [closed]

I need some help with the case of converting the hibernate SQL result to json. SQL: select locationApiAcp as acp from Pro Function: public List<Map<String,Object>> listByNativeQuery(String query) { Query native...
asked by 14.12.2016 / 18:33
1
answer

How to use RealmObject class

I'm working on an Android project and trying to use the RealmObject class is not recognized even though I import the io.realm.RealmObject package. Is this class no longer available?     
asked by 15.12.2016 / 12:35
1
answer

Error using Lock Screen

I'm trying to block the screen with the following code: protected void onBloquear(View view) { DevicePolicyManager mDPM = null; mDPM.lockNow(); } Source: link But it gives the following error. Caused by: java.lang.NullPointe...
asked by 14.12.2016 / 23:41
2
answers

Error in CRUD command UPDATE - java.sql.SQLException: No value specified for parameter 8

I'm building a Java system with MySQL database connection, but I stopped at some point because I can not find the error. My update method happens an error in JUnit, but I can not figure out what it is. Follows parts of the code: package com...
asked by 17.12.2016 / 20:36
1
answer

org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 24; Attribute "singleton" must be declared for element type "bean"

I am updating an (old) project for newer libraries, like Spring (from version 3.2.4.FINAL to version 4.3.11.FINAL). One of the errors that appears in Tomcat 6 is: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Config...
asked by 17.11.2016 / 14:23
1
answer

Get the current page name with JSF 2 [closed]

I'm using JSF 2 and need to get the name of the current page, how can I do it?     
asked by 03.08.2016 / 01:36
1
answer

How to close one screen after opening another?

I'm having trouble closing the screen, I'm programming in Eclipse. When running, the program opens and the Login window appears, when the user enters the correct code and password, a message appears to let you know that you have gained access...
asked by 17.09.2016 / 01:12