Questions tagged as 'jsp'

2
answers

Problem with encoding using websphere

Well, the fact is that in my html header I have the tags: <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <META http-equiv="Content-Type" content="text/html; charset=ISO-885...
asked by 29.07.2016 / 10:29
2
answers

I can not update a field in a Java-Web form

At the moment I want to modify a field in the form of a record, in the case of the Age field, I modify it to 19 but at the time of modifying it I get the following error: GRAVE: Servlet.service() para servlet MisServlets.ServletPaciente lanzó...
asked by 23.11.2016 / 15:11
2
answers

How to generate an event by clicking on a checkbox with javascript?

I have the following code, what it does is add variables and place the final result in an input, now what I want is that when you click on a checkbox, add 5 to the total result and update the input with the new value , and if I click again on th...
asked by 11.09.2018 / 03:37
2
answers

I want to take the data of each label?

I want to click on each button of each div generated I take the data in which they are, the price and the name, but when the page is generated, all the buttons return the information of the first <div> generated for the fo...
asked by 28.11.2017 / 13:12
2
answers

How to show a report with jasperreport when clicking on a button?

I have the following code in my jsp, and what I want to do is that when I click on the button, it sends me to another page to show the report, what it does is that if it enters my method that I have in the controller but shows nothing or marks e...
asked by 02.10.2018 / 04:08
4
answers

How to accommodate the fields of a form with bootstrap?

I want to accommodate fields in this way I have the following fields , and only the combos 1 and 3 are shown, but I do not know how to accommodate so that combos 2 and 4 come out as in the image How could he do it? and likewise...
asked by 22.08.2018 / 20:26
1
answer

How do I print a route on the href of my link tag?

What I want to do is print the route of the host that I am currently on. First code Javascript code var urlObt; urlObt = window.location.href; JSP Code String url = "<script>document.write(urlObt)</script>"; Impressi...
asked by 12.04.2018 / 18:39
1
answer

Problem with Counter in JSTL or change for a for (int i)

I need to carry a variable counter in an html using JSTL because the JSTL uses a Foreach instead of a for (int i ..) I tried with: Da error <c:set var="i" value="-1"/> <c:forEach items="${finalmente}" var="dato">...
asked by 12.03.2018 / 21:24
4
answers

error when calling Servlet from index.jsp

Good afternoon, I have a problem calling a servlet from my index.jsp, inside the index I have a form    index.jsp <form action="ServletLogin" role="form" method="post" class="form-horizontal">...
asked by 29.11.2017 / 22:48
2
answers

How can I upload a .jsp file in Tomcat 8?

My operating system is Ubuntu 16.04.3 LTS , and I downloaded the latest version of Tomcat, 8.55. I have configured apache2 and Tomcat so that Tomcat runs on https, however I have a file in /opt/tomcat/webapp/archivo.jsp that when I...
asked by 10.10.2017 / 08:15