Questions tagged as 'jsp'

1
answer

How do I get the value returning from console.log (results [4] .geocode) to use when comparing my if?

var init = [iAppLib.getPersonalBits(), iAppLib.getGeoCode() ]; var codes = false; var gcOk = new Array("BRH04700","BRH04600","BRH00200","BRH04500","BRJ01400","BRM00100","BRM00200","BRM096...
asked by 13.12.2017 / 12:56
1
answer

Database result in inputText

I'm developing a web application in JSP and would like to get the maximum code of the products registered in the database and put in the text field. <input type="text" name="codigo" id="codigo"/> But I can not. Here's my JSP:...
asked by 25.10.2017 / 02:21
2
answers

java.lang.NullPointerException JSP Servlet

I'm developing a web application using jsp and servlet and I want to show all my records from my database and the amount of records in a table, I created a DAO where I performed queries where they returned the data correctly and put a session in...
asked by 14.09.2017 / 06:31
1
answer

Error in Spring when starting the server

Imported a Maven project that worked perfectly before, but now I'm giving it error. Every time I try to fix this error, I change the Java versions, deleting and importing them again and so on. Dependencies: </parent> <grou...
asked by 02.07.2017 / 03:21
2
answers

Error in DELETE method, to delete a data from a table

I'm trying to make a method to delete an entry from a table with Java and jsp , but it's giving 405 error. I'll append the codes. ProductDao.java: public void remove(Produto produto) { em.getTransaction().begin(); em.remove(bu...
asked by 20.06.2017 / 21:59
1
answer

how to retrieve a list of data and display in jsp

Good evening, I'm not able to display a list that is saved in the database on the jsp page. I would like to know how I do, tried some forms, call the menagerBean and the servlet jsp calling by servlet <%@ page language="java" contentTy...
asked by 20.04.2017 / 04:43
1
answer

Pass variable from the daughter page to the parent page in jsp

I am making a simple crud in java using jsp and servlets . And I came across the following situation: I have layout.jsp which makes the include of another dynamic page, which in this case will be excluir.jsp ....
asked by 22.02.2017 / 19:09
1
answer

How to pass as a parameter in a 'items' method of a forEach, a URL variable?

I am developing a project in Java, academic work. My doubt is in the following. I can display the items related to a logged in user, where the value (nick) is set in a session named login. See: <jsp:useBean id="dao" class="dao.CestaDAO" /&g...
asked by 08.02.2017 / 19:56
1
answer

Method call inside the JSP

Good morning everyone! I was having trouble formatting dates in jsp, but with the help of friends here, I managed to resolve. The problem is that I think my code is far from the good practices in JSP, I had to program it inside the page, but...
asked by 23.01.2017 / 12:12
1
answer

JSP Two houses after the comma

I have the following number: 10.205203 I would like it to appear in only 10.02; I have this function, I do not know if it's the right one <fmt:formatNumber value="${media / total}" pattern="#,#0.0#" /> Thank you     
asked by 31.10.2016 / 18:18