Questions tagged as 'java'

1
answer

Question about Filter - JSP

Well, I'm learning JSP and I'm trying to make a filter where the user is not logged in. It redirects to a login page, and I'm not getting it. I created a Servlet controller that does the Dispacher for a JSP, in case it would be Add Task and...
asked by 14.11.2017 / 12:26
0
answers

Show Result of an onResultScan in a RecycleView

I am putting an APP for the course, it is about Wi-Fi , I need to list available Wi-Fi in the Recycleview , in the example I'm going to show it's listing in a ListView , and Recycleview I can not do because I can not get the result onRe...
asked by 14.11.2017 / 04:44
1
answer

Convert date dd / mm / yyyy to yyyy-mm-dd'T'HH: mm: ss

How do I convert a date in the format dd / mm / yyyy to the format supported by sqlite yyyy-MM-dd'T'HH: mm: ss Example: public static String converteStringEmData(String stringData) throws ParseException { SimpleDateFormat sdf = new S...
asked by 11.07.2014 / 20:07
1
answer

Update a selectOneMenu (method in the bean)

Well I'm trying to get a selectOneMenu to populate another selectOneMenu and update a field, but I still do not quite understand how to do it. classes: package model; import java.io.Serializable; import java.util.List; import javax.persis...
asked by 17.11.2017 / 21:58
1
answer

How to allow login on only one device at a time

I have an app that when installed and logged in by firebase, the user will not be able to use their account on another device. In case, if you need to change the device the user will have to ask for release to a supervisor. I'm using native A...
asked by 30.11.2017 / 17:51
0
answers

Select only a few columns of mapped objects with Hibernate

How can I select only a few fields from a related object? How it works (catching everything): List<Participante> participantes = this.entityManager.createQuery("SELECT a " + " FROM Participante a WHERE a.pe...
asked by 07.11.2017 / 12:23
0
answers

User authentication in java using Mysql database and Framework spring boot

Good afternoon. I am developing a web application using the spring boot framework, hibernate and jpa with the mysql database. I have a question about the authentication of this user because until the moment I only save this user in the database...
asked by 07.11.2017 / 15:20
0
answers

How to implement the DELETE method of the HTTP protocol in a Web Service REST in Java

I'm in doubt as to how to implement the DELETE method of the HTTP web service REST JAVA protocol, when I run it says I'm running the GET method and not DELETE. // Method Called in Web Service public void remove(Promocao promocao) {...
asked by 08.11.2017 / 23:23
1
answer

Doubts Abstract Factory

I have this exercise to do but I am not able to do the implementation Using the Abstract Factory Pattern, deploy java Process Manager and Memory Manager products to Linux, Mac, and Windows operating systems So far I've just been able to do...
asked by 09.11.2017 / 18:20
1
answer

Google Maps Direction API only works the first time

I have the following code that creates a route using the Google Maps API Directions: public class MapsActivity extends FragmentActivity implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, OnMapReadyCallb...
asked by 08.11.2017 / 23:21