Questions tagged as 'java-ee'

2
answers

Add folder with images on glassfish web server

Good afternoon, folks how do I leave a folder on my glassfish server with some images? When I need it I have direct access to this url .. Has anyone done this yet?     
asked by 17.06.2015 / 19:23
1
answer

Paging table with AngularJs

I was trying to put a pagination on my table, after a help I partially solved the problem, but it did not stay the way I expected. I can already get the currentPage with each click on the < pagination> the problem is on how t...
asked by 24.09.2015 / 19:55
1
answer

outputStream writing a byteArray - XSS validation

I'm working with software that passes through a "Security Application" that indicates lines of code that are potentially unsafe (theoretically). Based on the code below, the application signals the outputStream.write() line accusing of...
asked by 24.04.2014 / 19:36
1
answer

Problems with selectOneMenu

I have a table and in this table I have the option to edit. Clicking on the edit option opens the dialog and all the fields (columns) of the current line I want to edit are populated. A list is loaded into selectOnMenu but it does...
asked by 06.10.2014 / 03:19
1
answer

Check if there is a file in a certain folder rendered jsf

Personal I'm saving image to a particular project folder and I need to check if this file exists in the folder. I was using a command as below: rendered="Fotos/#{consultaFuncionariosBean.pessoaModel.codigo != null}.png" But it did not work....
asked by 05.07.2017 / 15:50
1
answer

Java CDI - Configuration

I created a simple project containing a Test class and an InterfaceInterface interface. In the test interface I created some method just to test. In the Test class I just put @Inject Service service; When I call the interface method, it is...
asked by 17.01.2017 / 20:42
2
answers

Where should I put the Try / Catch blocks using MVC?

I am doing a web application in java and I have some doubts regarding the try catch block, I am using the MVC standard and I have the following codes: Controller: try { String pesquisa = "%" + request.getParameter("pesquisa") + "%";...
asked by 14.11.2016 / 15:51
1
answer

Get method of http being automatically invoked

Good morning, I'm implementing the get servlet method here with a very simple logic. If the user passes a url in the default: "... / entities / id", the edit form should already be opened with the entity corresponding to the id typed after th...
asked by 05.07.2016 / 11:40
1
answer

How to create style condition in Jaspersoft Studio?

How can I put a style condition in Jasper Studio by checking if the value is positive put green in the foreground, if it is 0 or negative put red in the foreground? I pass the following to the HashMap datasource: JRDataSource jrDataMoviment...
asked by 05.05.2016 / 23:32
1
answer

Spring Boot configuration error: org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.jpaVendorAdapter

Hello I'm getting the following StackTrace below when I start Tomcat with my Web project after making the settings with Spring Boot. After I created the following classes below, I'm having this error. ERROR GRAVE: Exception sending con...
asked by 19.05.2016 / 03:32