Questions tagged as 'jsp'

3
answers

Check that read-only fields have not been modified

I am using spring-mvc and I have a form in a jsp, in this form there are fields that are read only, imagine that we have to make a payment and a field is the amount, I would like to know how I can do to verify that the read-only fields have not...
asked by 06.03.2017 / 20:44
1
answer

Life of a snake in JSP

I am doing a "game" of a snake, in which it must grow little by little and each part of its body has a color. I have problems with putting the color and I do not know in what way I can enter it. I put the code that I have put in which I get null...
asked by 26.09.2018 / 11:18
2
answers

Is it possible to run a servlet from a Thread class?

I'm doing a web application with JSP. This application has to show the result of a query in a table. The difficulty is that this has to be shown when the application is opened (url), without pressing any button. I thought about doing a Thread th...
asked by 14.06.2016 / 22:57
1
answer

How to invoke EJB from a remote server to another server .. using WILDFLY 10 and JSP?

Currently I develop a web application in JSP with WILDFLY 10. Currently my application is divided into modules but I deploy it with the same EAR. My idea is to divide the application into several modules, an EAR that is a remote ejb which han...
asked by 14.06.2016 / 15:49
1
answer

How to disable a boostrap dropdown menu?

I have the following method in the start controller that directs me to the menu screen @RequestMapping(value= "/menu", method= RequestMethod.GET) public String mostrarMenu(){ return "/menu"; } this is the jsp of the menu...
asked by 04.09.2018 / 06:36
1
answer

I need to treat an enumerated as if it were an array in a jsp with jstl

For now I am loading the elements of the list manually, but I would like to know if you can go through any of the components provided by JSTL ( c:forEach for example), because in the enum I have 3 options, but imagine if there are 500 opt...
asked by 27.03.2018 / 20:24
1
answer

Life time of a variable within a class

how I have a project where you read a csv file of thousands of lines a column of the CSV I save it and send it to a class where a list feeds my question is how long life has that list. once finished it will restart. or how would the lifetime of...
asked by 25.01.2018 / 20:18
1
answer

diamond operator is not supported in -source 1.5

I have the following code which shows some products in a combobox <%@page import="java.util.List"%> <%@page import="java.util.ArrayList"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html&...
asked by 24.10.2017 / 20:23
1
answer

Error updating and deleting users - JSP and Servlets

When I exceed 10 characters when changing the user password, I get this error: And when I want to delete I get this error: CODE of UpdateUsers.jsp: <%@page import="pe.edu.sise.bean.ErrorBean"%> <%@page contentType="t...
asked by 18.09.2016 / 08:02
1
answer

get jsp variable value in jquery

How do I pass the value of a variable declared in a jsp to a js file to modify it and pass it back to the jsp. jsp file <body> <%! int contador = 3; %> <div class = "container"> <div class=...
asked by 16.08.2016 / 06:05