Questions tagged as 'java'

1
answer

Organizing issues for on-screen viewing

Good evening. I have a String attribute that receives a question coming directly from a textArea. My problem is that I can not leave the questions at the time of displaying the same as registering them. Ex: Register a question like this:...
asked by 23.10.2015 / 04:41
0
answers

getNamedQuery returns null

I have a namedQuery that for some reason is returning null results from the database. The namedQuery itself: @NamedQuery(name="Usuario.userLogin", query = "SELECT u.email, u.senha FROM Usuario u WHERE u.email = :mail AND u.senha = :senha")...
asked by 23.10.2015 / 14:14
2
answers

Authenticate PHP page through the application is not working

I'm trying to make a connection to the MYSQL database to login to the user in the android application, I already have some users registered in the database but I'm not able to login with user data. <?php if($_SERVER['REQUEST_METHOD']=='POS...
asked by 02.09.2015 / 22:25
1
answer

Inflate a warning in the view from a BroadcastReceiver

I have an application where it is necessary to monitor, and warn the user when he is without an internet connection available. To solve this, I created a BroadcastReceiver and show a toast when this happens. But I need to update this class so th...
asked by 04.09.2015 / 16:26
0
answers

Compile java and generate .jar

I have a well-structured maven project. I want to create .jar to run the application. Inside the project, at the prompt, I did: mvn clean install package Returns the error:    C: \ sampleSpring \ portal-inscription \ portal-api> mvn p...
asked by 03.09.2015 / 16:21
0
answers

Authentication and authorization of the email and password in the login screen

I have a login screen in which the email and password are already registered in the database, but I am not able to log in with this data that is already stored in the database. In the loginBean class I need to not leave static, but rather accord...
asked by 23.10.2015 / 19:53
0
answers

Set up project on tomcat8 Ubuntu Server

I'm having trouble setting up my project in tomcat8 , I use ubuntu server. I created a DNS or which points to my server on port 8081 and presents the tomcat home page with no problems. I'm having trouble changing the tomcat...
asked by 25.10.2015 / 20:07
0
answers

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

I'm trying to pass an old code to an MVC standard, but by modifying the methods and creating the new Zoom class, I'm encountering this flaw in the console: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at CONTROL.CAplic...
asked by 25.10.2015 / 02:41
1
answer

Call a method when opening the application

I have the following class public class ReadXlsx extends Activity { public TextView txtcoluna1; public TextView txtcoluna2; public TextView txtcoluna3; public TextView txtcoluna4; @Override protected void onCreate(Bundl...
asked by 25.10.2015 / 13:52
0
answers

Return to the region of the page where you were when submitting the form (JSF 1.2)?

I have a page jsf with 2 forms type master / detail. How to make after the submission of the form detail the bean can direct to the region of the page where the detail is? I am using jsf 1.2 and Richfaces 3.3.3.     
asked by 09.09.2015 / 17:29