Questions tagged as 'jsp'

1
answer

Dynamically fill fields according to JSP CEP Javascript

I want that when I type my zip and click the search button, it returns the data of the public place, state, neighborhood and uf but clicking on the search button it is not calling the function that searches the data of a webService of the mail....
asked by 20.09.2017 / 20:57
1
answer

Why this error

Can anyone please explain this error to me? <% String[][] mesa = new String[30][30]; out.println(""); for(int i=30; i>=0; i--) { for(int n=0; n<((302)+1); n++) { out.print("-"); }...
asked by 21.06.2017 / 05:23
1
answer

Redirection of sum result in JSP servlet

I need to show the result of a sum in a redirected page, I tried a "setAttribute" after the "Redirect" but it does not work. The sum value would have to go to an "input" on the next page, or a simple " <h1> ". The part of the "reques...
asked by 17.09.2018 / 23:22
1
answer

How to format a number in percentage within JavaScript?

Gentlemen, I'm developing a billing monitoring dashboard. I want to turn this number 56% directly into my JavaScript code. Here is a snippet of my code, it is fed directly by a query from my SQL. This is the query that feeds my field within J...
asked by 27.07.2018 / 22:12
1
answer

c: forEach does not work

For some reason my <c:forEach> does not work, my normal for-each normal, in which I System.out.print works normally. MODEL: package model; public class ModeloX { private int id; private String desc;...
asked by 05.02.2018 / 19:40
1
answer

console.log is not working

What am I doing wrong? Why is console.log not working when I enter the variable via JSP? The following error appears:    index.jsp: 1 Uncaught SyntaxError: missing) after argument list at eval (<anonymous>) at jquery-1.7.2.min.js:2...
asked by 13.12.2017 / 15:25
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

How to do a login authentication?

I'm having a problem signing in to. I have a simple page: Ijustneedtoquerythedatabaseifthevalueenteredbytheuseristhesame.Thisonehere:Model:@EntitypublicclassUser{@Id@GeneratedValue(strategy=GenerationType.IDENTITY)privateIntegerid;@Column...
asked by 12.06.2017 / 23:21
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