Questions tagged as 'java-ee'

3
answers

PRIME FACES ("commandButton"):

** How should I implement the code or what is the property of the "Command Button" so that it can only be executed by clicking on it ?? ** I have the following code in which I use Primer faces the "command Button" which is at the beginn...
asked by 16.01.2018 / 18:50
5
answers

Alternatives to Eclipse to develop in J2EE [closed]

Some time ago I am looking for a solid alternative to Eclipse to develop on J2EE, since at certain moments Eclipse is somewhat "erratic" (failures, corruption, ...) especially when you try to work with a J2EE server How can Wildfly be? To be...
asked by 10.12.2015 / 15:40
4
answers

Should I always use a servlet to work with web applications?

I want to create a web application using Java. I have some knowledge of the language, and when searching online tutorials they always mention the creation of a servlet . Is it necessary to learn and use servlets to create these types of ap...
asked by 05.12.2015 / 19:21
1
answer

Read a file with Java Web Start (jnlp)

I have a java application that reads a config.db file, locally it works correctly but when executing it from jnlp it tells me that this file does not exist, in the same way and case they occur with the reports * .jasper config. properties etc....
asked by 29.03.2016 / 19:05
2
answers

Inject objects into Java

I'm used to working with Java EE where you can simply inject objects with the @Inject annotation however I do not know how to do it without using Java ee. What I want is that the same object with the same instance can be used in different cla...
asked by 27.12.2017 / 23:10
2
answers

What is the difference between return "view" and return "redirect: view" in a POST method for Spring MVC?

What happens is that I have a jsp view from which I fill a form, I send the data by means of the POST method to my controller and once the instructions are finished I return to the main view of my site. However, the methods contained in my dri...
asked by 24.02.2016 / 18:49
1
answer

Inject EJB into controller

I'm with a JEE application based on Servlets and EJB 3.1. I want to inject the EJBs by annotation. From the Servlet itself I can do it, but if I do it through another class (a Controller) it does not inject it. Let me explain by example: I ha...
asked by 28.06.2018 / 15:08
2
answers

I capture null value when I make a select to the database

Well, the problem is: I do not capture the value that exists in the database, especially in field codsubmenu , it is only capturing null values. I leave the code. public class Menu implements Serializable{ private int idMenu; pr...
asked by 19.01.2016 / 05:49
1
answer

EJB Statefull does not preserve the state if it is called from different Servlets?

A Stateful EJB: package ejb; import javax.ejb.Init; import javax.ejb.Remove; import javax.ejb.Stateful; @Stateful public class Contador implements ContadorRemote { private int cantidad; @Init public void initialize(){...
asked by 27.10.2016 / 13:28
2
answers

How do I solve the CORS problem in JavaEE and Angular

I have a CORS problem that I have no idea where it comes from, I am creating a REST service in JavaEE (Glassfish) and I have Front an Angular app consuming the aforementioned service, I am testing the token authentication with the JJWT...
asked by 29.05.2018 / 23:58