Questions tagged as 'java-ee'

1
answer

Why does JSF not recognize the component id in View?

JSF is not recognizing the "dialog-analysis" id that is in the view and is giving the error: FATAL: Cannot find component for expression "dialogo-analise" referenced from "frmAtividade:tab:itens-rh:0:j_idt275".javax.faces.FacesException: Canno...
asked by 05.10.2015 / 14:50
1
answer

What would be a class of services in an MVC Java project?

Could you tell me the difference between classes in the "control" package in an MVC project and service classes?     
asked by 10.11.2018 / 12:15
2
answers

Hibernate is not mapping classes

Hibernate I'm using is not automatically generating tables My Persistence.xml file <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/...
asked by 18.12.2017 / 18:22
2
answers

Is it possible to reuse the parameters of a Query in the JPA?

Hello, I have a question about Parameters of object Query on JPA . I am implementing pagination of my tables using Primefaces with LazyDataModel and in the function that I use to perform pagination I do 2...
asked by 15.09.2017 / 16:42
1
answer

Javascript field validation in JSP

function validar() { var nome = document.getElementById("nome_passageiro").value; var data = document.getElementById("dt_nascimento").value; var cpf = document.getElementById("cpf").value; var modelo = document.getElementById("mod...
asked by 08.09.2017 / 20:27
1
answer

JSP with Servlet

I'm trying to make the servlet work as a controller I was following the caelum handout but I can not find the error o jsp aservlet@WebServlet(urlPatterns="/LoginInfo") public class LoginInfo extends HttpServlet { public LoginInfo(){...
asked by 21.06.2017 / 01:35
1
answer

HTTP Error Status 405 Servlet

I've been doing the "5.5 First Servlet" exercise on Caelum's Java Web FJ21 handout, I made the code, restarted Tomcat as requested but when I open the link "http: // localhost: 8080 / fj21-agenda / oi "> link " to access the page the error occur...
asked by 21.05.2017 / 16:35
1
answer

In android which class corresponds to class Image of javaFX

I have an image server implemented in javaEE, in javaFX I make an image request to the server that returns an array of bytes, with this result I create the image on the client side: ** Image in PNG format. byte buffer[] -> image bytes re...
asked by 25.09.2016 / 15:21
1
answer

Server JAVA and TomCat application doubts

Well, I need you to help me. I have an application server in JAVA EE and I need to use TomCat to upload this application to use it in another application. How can I do this?     
asked by 13.10.2016 / 21:30
1
answer

Execute servlet before loading index.jsp

I'm trying to run my servlet before loading index.jsp because the information contained in the index comes from a query in the database. I tried using <jsp:forward page="/servlet"/> But it did not work. How can I do this?     
asked by 26.08.2016 / 00:21