Questions tagged as 'java-ee'

2
answers

Are the JavaEE libraries in the JDK?

I have a JavaEE code that was delivered to me and I am trying to make it run to create a module from there, among the several libraries that are being imported are the following: import javax.ejb.SessionContext; import javax.ejb.Stateless; imp...
asked by 01.10.2017 / 20:55
1
answer

Error 405 HTTP method POST is not supported by this URL

I'm doing a web application (JSP) with eclipse with the google app engine plugin and it throws me an error when I press the send button:    "Error 405 HTTP method POST is not supported by this URL" I've tried with "get" and if it works, b...
asked by 02.02.2018 / 19:34
1
answer

Syntax error Mysql in J2EE Web application Servlets and JSP's

I am building a small web app using NetBeans 8.2 with J2EE. At the moment of executing the following query in the DAO, it shows me a MySQL syntax error that does not exist since if I execute the query in the BD manager there is no syntax prob...
asked by 23.10.2017 / 13:40
2
answers

How to validate Date?

Good morning, The next thing is, I have a Date class that handles day, month, year, as a whole, each one, and in that class, a method that is ValidateDate. The question is that the date is entered by keyboard in the main method and it is rece...
asked by 21.06.2018 / 08:54
1
answer

JPA - Problems with persist of @ManyToOne

I am working on an application that requires data from faculties and careers to be saved and I have created the following entities:    Faculty @Entity @Table(name = "uc_facultades", schema = "uc") @SequenceGenerator(name = "Facultades_id_s...
asked by 28.01.2018 / 00:06
2
answers

Keep a session in Java with jsf and ManagedBean

Starting with Java EE and JSF, I need to create a simple login and keep the id and nick of the user in the session. For that, create a class package Controlador; import java.io.Serializable; import javax.faces.bean.ManagedBean; import java...
asked by 06.05.2016 / 23:13
1
answer

Obtain values of a jsp variable in javascript

I was trying 2 ways to get values in a variable jsp in my javascript, but they give me different results FIRST ALTERNATIVE //Con esto obtengo un string con este valor "[1,2,3,4]" <% String permisos= (String)session.getAttribute("permisos...
asked by 10.09.2018 / 19:01
1
answer

Replace Eval function

I have to replace in a JEE application (I did not create it myself) all occurrences of the eval() function. The reason is given after carrying out an analysis of the code through a solution for measuring the quality and security of the so...
asked by 12.07.2018 / 10:04
1
answer

Move to the form a ListObject from JS to Server

I have a form on a web page to which I collect some values from JS and add them to an object. All those objects I put them into an array and add it to a hidden input I have on the page: document.editRouteForm.busStops.value = JSON.stringify(ge...
asked by 10.05.2018 / 09:20
1
answer

403 Forbidden when I try to consume using Spring RestTemplate

I am trying to consume a web page service with RestTemplate of Spring . However I get the error 403, but if I consume the URL from PostMan then it does bring me the information without error. Does anyone know how I can solve this pr...
asked by 21.05.2018 / 22:00