Questions tagged as 'java-ee'

1
answer

How to include .jsp file in the solution?

I'm developing Java web applications using JSP's. I have a file called header.jsp , which contains links to CSS files and other things that are important to my system that is in the root directory. I have a folder that has other .jsp...
asked by 11.11.2014 / 04:24
1
answer

Problems with Maven package dependencies

When I insert this package it generates an error, why will it? <!-- Abstração para envio de e-mails --> <dependency> <groupId>com.outjected</groupId> <artifactId>simple-email</artifactId...
asked by 12.06.2015 / 20:46
1
answer

How to handle request header with Filter

How to change, remove, or add header of a request to a Web application using Filter ?     
asked by 20.06.2015 / 17:56
1
answer

Transfer files by FTP to Java Hosting

If I hire a host to host my Java application can I transfer files by ftp ? so that my application will read these files? I have a desktop application that stays on the server that generates a .xml file every 1 hour and I have a w...
asked by 12.06.2015 / 21:46
1
answer

How to get the name of the remote user connected to the server with java?

I have a problem that I do not know if it is possible to solve, I am developing an intranet system and I need to get the local user name (ie pc client). I tried to use System.getenv("username") , which returned the username of the serve...
asked by 02.03.2016 / 22:16
1
answer

TimeTask scheduling Tasks in Java

I'm trying to set up some task cycles in TimeTask so that it happens every day at a particular time, could someone give me a tutorial or some example that employs this question? What happens is that it works, but only once, if by chance I try to...
asked by 11.09.2014 / 15:52
1
answer

What design pattern should be used to save objects that have similar save shapes?

I'm wondering if I'm not mistaken, I've read, seen, or even implemented something like this but I can not remember it, it's the following: I have here an EJB project with several entities, some of them have very similar ways of saving, for ex...
asked by 26.07.2014 / 05:24
1
answer

How to convert a byte [] from an image to a jpeg image to load in html?

In the html (jsp) of register I have a field that the user registers his photo getting the tag img with the following result. <img src="data:image/png;Base64,/9/0kmkdmkewnsjdncijndcjdxncdjcdscjnccc/ccnkjdncnsjnidckcmokcmoskcmkosmcokm...
asked by 11.03.2016 / 19:11
2
answers

Doubt regarding JPA management with Spring on JEE server

I'm starting in Spring MVC and in the book I'm reading the configuration and management of connections is all done by Spring, that is, Spring opens and manages the connections with the bank and makes this available as if I had a JEE server (% wi...
asked by 13.12.2015 / 23:54
1
answer

Entities marked FETCH LAZY are returning "null" even after a call to the GET method

Hello, good morning, friends, Why are my entities marked as fetch lazy returning "null" even when they are invoked via a get? What I learned in several courses is that when I make the first call to a get method, hibernate would load the da...
asked by 19.11.2018 / 12:22