Questions tagged as 'jsp'

1
answer

Pass parameter between two JSPs

I have the final page.jsp and saida.jsp. In the final page.jsp I send the parameter like this: <form action="saida.jsp"> <input type="hidden" name="informal" value="${documento.stringInformais}"> <button type="su...
asked by 27.08.2014 / 01:30
2
answers

Calculate Distance Api Google Maps v3 Automatically in a Loop

I would like to calculate the distance between two points using the api Google Maps V3 automatically without the use of interface, and send them to java for future processing. The coordinates are in a MySQL database. I'm even getting more tha...
asked by 09.09.2014 / 01:47
1
answer

Client side object instance deleted and sent to server

I would like to know if anyone has already had this problem and how to resolve it. I'm using JSP and Spring Data JPA. Deleto records the middle of a form that is a detail using Javascript, right? But when I give a POST, the server creates...
asked by 07.01.2015 / 19:44
2
answers

Remove JS file via JS

I have a site that has the fixed side menu and the other part loads the pages. For each page of the site I made a js file. For example: Home.jsp I have the file home.js, Contacts.jsp I have the contacts.js. I'm loading the pages with the jque...
asked by 16.06.2014 / 14:45
2
answers

Problem passing Polled Bean to controller and insert into DB using Java with Spring mvc

I would like you to help me with this problem that is occurring in my application. The following is the code below: package br.com.estoque.Controller; import java.util.Map; import org.springframework.stereotype.Controller; import org...
asked by 17.09.2014 / 04:16
1
answer

Get method of http being automatically invoked

Good morning, I'm implementing the get servlet method here with a very simple logic. If the user passes a url in the default: "... / entities / id", the edit form should already be opened with the entity corresponding to the id typed after th...
asked by 05.07.2016 / 11:40
1
answer

What's wrong with this query from my JSP?

This is an excerpt from a JSP page that lists logged-in user commitments. I do not use JSP nor do I usually do this kind of select but I need to use it that way. <% try { Class.forName("com.mysql.jdbc.Driver");...
asked by 09.05.2016 / 03:23
1
answer

Client sending String [] instead of BigDecimal to server when changing

When it's a new record it works quietly , the problem is in change . I have a A object that is the master, another B object that is a ArrayList tail and master A detail, and last , a C object that is ArrayList and detail o...
asked by 28.09.2015 / 16:03
1
answer

How to validate a form correctly?

I'm studying Java EE, but I'm having a hard time doing validations on data entry forms. My servlet CadastrarInstrutor collects the form fields and checks their contents. Below is the code for my JSP page (I put only the content of the...
asked by 25.10.2015 / 16:58
1
answer

How to use variables declared in other JSP pages after include?

I have a jsp page with only two includes in the whole code: <%@ include file = "../_global/prefixos.jsp" %> <%@ include file = "../_global/testaProfessor.jsp" %> In prefixos.jsp I have the following: <%@ taglib pref...
asked by 15.08.2015 / 15:19