Questions tagged as 'java'

1
answer

How to display a confirmation message after checking in the servlet?

Good afternoon everyone! When I click the Change button, I check to see if the data in the database remains the same. How do I return a confirmation window if the results are not the same? Example: I select the material I want to change, fill...
asked by 13.11.2016 / 19:34
1
answer

How to capture more than one attribute from a foreign key?

I'm doing a Java-Desktop Vehicle Lease project. I am using MVC, DAO and JDBC. In my bank I have the Rental and Car tables: CREATE TABLE IF NOT EXISTS 'frota'.'carro' ( 'idcarro' INT(11) NOT NULL AUTO_INCREMENT, 'chassi' VARCHAR(45) NULL...
asked by 01.02.2017 / 16:13
2
answers

FileOutputStream failed context

I'm trying to reuse a class, which writes the file to internal storage. In the first line of try , the result is null (coming from activity ) and generates an error. When I run this code in mainActivity , it works. pub...
asked by 14.11.2016 / 00:15
1
answer

Redirect between pages with datatable (primefaces) without losing filters

I have 3 pages and they are responsible for fetching objects in my databases based on the first page selection filter. My site is about car ads and has the following structure: First page: You are responsible for the user selection filte...
asked by 11.11.2016 / 18:41
1
answer

No bean named 'entityManagerFactory' available

I'm testing my Spring application with JUnit, however the error is occurring after putting the annotation @EnableJpaRepositories :    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'entityManag...
asked by 12.11.2016 / 20:06
0
answers

Exception in the Filter of only one page

I have a filter @WebFilter ("/ *") that blocks everything, however, I would like it to have exception of a few pages ... A page (or one I chose) was not blocked What is it like? @WebFilter(urlPatterns = {"/retiro","/valor","/pessoa","/ga...
asked by 22.12.2016 / 21:25
3
answers

Error comparing java strings

I have the following situation. I get a string that is in the ApplicationStorage location in a javascript variable. <script> var sendForm = localStorage.getItem('f'); </script> This same string I pass to a java variable t...
asked by 21.12.2016 / 19:10
0
answers

How to edit an image stored as a BLOB

Using Spring MVC , thymeleaf and mysql , I have an image stored in a database as a BLOB along with other attributes and I can render the image on the screen normally in a list. From the list, I can access a record editing form...
asked by 22.12.2016 / 19:29
0
answers

ListView Error

Good afternoon, I have an error that arose after having edited a function to save data by DialogFragment, in logCat it presents the error that my ListView is null, but I can not get the null of the class because it will not recognize : follow...
asked by 11.11.2016 / 01:14
1
answer

Accessing an .exe file within a .jar file

Good! I'm new to Java and I'm developing a program that I need to include in a driver's executable. When running the .jar file, how can I make it run the .exe file? Do I have to extract it and then run or can I run it internally? Thank you...
asked by 30.11.2016 / 13:30