Questions tagged as 'java'

1
answer

Encoding BufferedWriter Fix Sonar

happens that I am trying to indicate the encoding in a BuferedWriter, but I can not do it, my implementation: Sonar findBug: Reliance on default encoding BufferedWriter out = new BufferedWriter(new FileWriter(comunConstants.getRutaAr...
asked by 02.06.2016 / 20:08
1
answer

Create query with LIKE parameterized? (JAVA / UcanAccess)

Good! I come here with a small question: How exactly could a query be written using a Like and be parameterized? I'm using UcanAccess with JAVA. I have a window in my program that requires the use of Like. Try first by writing it "normal" i...
asked by 28.10.2016 / 16:19
2
answers

Compare two hours (TimeStamp) MySql Java

I must compare 2 hours one that is already registered from the database and the current time, I have been told that I can use the timestamp in MySQL make me return a true or false and minutes difference, then in java I should receive what retu...
asked by 21.05.2016 / 02:23
1
answer

Stream error when invoking a REST service in Spring MVC with two javascript objects

Greetings estoyr trying to pass as parameter two JSON objects to a REST method that is in a rest API in Spring MVC , I'm using a service type factory in AngularJS to make the call to the method. The server responds with an error...
asked by 31.05.2016 / 21:23
2
answers

JavaScript does not work in API 17 and up

I made the webview of a web app and it works perfectly with versions of API 16 below. However, from the Jelly Bean MRI (API 17) onwards, there are various errors (depending on the API version) in the JavaScript. I read that you have to add a new...
asked by 31.05.2016 / 19:05
1
answer

Start session with java

I'm doing a web page in jsp with netbeans and I need to validate that the user has logged in to show some pages that should be restricted I've done this before but with php in the following way session_start(); if (!isset($_SESSION['missael'])...
asked by 30.05.2016 / 18:13
2
answers

JSF Primefaces And html input

For reasons of requirement, I have to combine components of primefaces and an input file in pure html. Now my question is, can I have the html input inside a JSF form? And that practically the whole view is with PrimeFaces and from a bean to pro...
asked by 23.05.2016 / 19:13
2
answers

Disable date in calendarView - android

I would like you to help me disable the dates after today in a calendar view. How could I do it? This is what I have: calendario=(CalendarView)findViewById(R.id.cvCalendario); calendario.setOnDateChangeListener(new CalendarView.OnDateChange...
asked by 24.05.2016 / 11:39
2
answers

Call JavaScript in a bean

What I want to do is the following. When a request is registered in the database in the interface a message of successful registration is shown, the message that I must put is one of SweetAlert . I use JavaServer Faces and I want to k...
asked by 24.05.2016 / 15:10
2
answers

Android: identify a physical SD card and write on it

I have a problem that I'm finding it hard to understand. I am working on an app that should control the storage space of the device to be able to carry out its usual processes, in addition to it; the application must be able to identify if a...
asked by 26.04.2016 / 18:33