Most voted "jsp" questions
Javaserver Pages (JSP) is a technology that helps software developers create dynamically generated web pages based on HTML, XML, or other types of documents. Launched in 1999 by Sun Microsystems, JSP is similar to PHP, but uses the Java programming language.
Learn more…390 questions
Sort by count of
-
0
votes0
answers69
viewsHiding Pages (Java for Web Development)
I’m studying the Java booklet for Web Development - Caelum, but I’m struggling at one point. In chapter 9.10 HIDING OUR PAGES I have already put all my pages in the WEB-INF/jsp directory and I have…
-
0
votes1
answer39
viewsReturn a button to its original state after 'download popup'
In my Java Web project there is a button to export a list to a CSV file which, when clicked, displays the message of 'Please stand by' for a few seconds to then return to its original state and…
-
0
votes2
answers77
viewsReceive property from a spring form annotated with @Sessionscope
I have a Spring form to login to the system. This login must be kept in session, so I noted the classe Credencial (equivalent to login) with @SessionScope. I receive the data of this credential from…
-
0
votes0
answers68
viewsI cannot implement the Arraylist values in the table in the JSP file
I’m starting out in Java Web content and got stuck in the following situation: I am trying to transfer the Arraylist values created inside the JSP file to the table that is inside the JSP file as…
-
0
votes0
answers236
viewsError JSP not displayed - HTTP Status 404 - Not Found
jsp code to display error messages: <%@ page isErrorPage="true"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <html> <head> <title>Show Error…
-
0
votes0
answers54
viewsID by variable it returns null and if you put the ID "in hand" it returns the right object
I am trying to recover a code received by a request to recover objects from the database, but am encountering some problems. Performing tests, replace the id coming from the request, by a forced…
-
0
votes1
answer705
viewsUncaught Referenceerror: das is not defined at Htmlanchorelement.onclick
I’m having a problem with a function call. A table shows the information of a client, and when clicking it should call a function that would show an Alert on the screen with the client’s CPF.…
-
0
votes1
answer69
viewsprint Map Object results with JSTL/JSP
Good evening everyone, I would like to know how to print the values of the Map Return Object with jstl? I tried to do with foreach, but the values does not return anything. Follow my implementation:…
-
0
votes1
answer63
viewsStatus error 404 (Servlet)
I’m having a problem with this Servlet, when I start with Tomcat error 404 appears and displays the following message "The requested Resource [/test/Novaempresa] is not available". JSP <%@ page…
-
0
votes0
answers52
viewsReturn calculation to jsp with a Servlet
Good afternoon, I have just graduated in computer science and I’m looking to enter the area of programming. I still have a lot of doubts in web programming but I’m already starting to develop some…
-
0
votes1
answer32
viewsHow to pass a JSP-mounted list and traverse it in a JS function by extracting its values?
I have a jsp page of a legacy code. A piece of it is as follows: <form name="frm_pedido" method="post" action='<%=(flgPrimeiroPedido ? "/pedidoConfirmaEndereco.jsp" :…
-
0
votes0
answers35
viewsTake an input value from a table and pass with parameter in a link
Good afternoon I need to take the value typed in an input inside a table that was fed with a List, and pass this value as parameter in a link, along with other parameters that these already got, due…
-
0
votes1
answer77
viewsHow to take the value of a select option and popular within a jsp variable
I would like to know how I get the value of select option and inputo within a variable in jsp. I’m trying the following code plus this giving error : Here I fill select with data coming from the…
-
-1
votes2
answers1131
viewsPass JSP variable value to JAVA
Good afternoon, I am using JAVA and JSP to program. I have a JSP variable and need to pass the stored value to the JAVA code. I need to pass the variable "X" which is in index.jsp to the variable…
-
-1
votes1
answer41
viewsComparison between Objects always returns false
Why even with that: ValidacaoHelper.saoIguais(3044, 3044), that is, with equal parameters, the return is false? /** * @param obj * objeto a ser validado * @return TRUE se o objetos passados por…
-
-1
votes1
answer268
viewsProblem listing data in JSP
I cannot do Data Listing. You are giving "Error Processing request", Servlet Path:/pages/data.jsp Path Info:null Query String:null... I don’t know what it is. Thank you for any help. OBS.: I’m…
-
-1
votes1
answer260
viewsApply mask when typing in input field, when typing a number show asterisk instead of numbers or letters
how do I apply mask in input field, when the user is typing instead of appearing the numbers/letters I want to appear in this input field the special characters (*). Example: 999*****99.
-
-1
votes1
answer645
viewsAjax with java, via jsp
need to pass the information of a component that is on the jsp page to a controller that is in java. From what I understand the best way is via AJAX. Municipal component <label…
-
-1
votes1
answer49
viewsData search
good guys to with doubt here and I want to do the following in jsp I want the client to type One word to search mysql database example Eonardo then I will have several registered names of the…
-
-1
votes3
answers577
viewsPassing attributes from a Servlet to a JSP
Hello. I’m developing a system where the user clicks on an edit button and then opens the editing page with the attributes of the already filled object in the text boxes. In my Servlet, I am using…
-
-1
votes1
answer190
viewsJSP scriptlet code for EL
How can I rewrite this JSP code using Expression Language? <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html> <html>…
-
-1
votes1
answer120
viewsError 405 - "Request not supported method"
The method you are sending by clicking the button is a GET but in my Javascript step as method POST and in the Controller he expects to receive a method POST also. My JS: function criaCategoria() {…
-
-1
votes1
answer161
viewsJSP and return java age
How to calculate age, I don’t know how to do in JSP and how to calculate with Java class method Java age. import java.text.ParseException; import java.text.SimpleDateFormat; import…
-
-1
votes1
answer386
viewsError generating pdf report from a jsp page
I have a problem generating pdf report using jsp and jasperreport. Initially, on my desktop where my server was glashfish, the code ran well, but when publishing the page on a Tomcat server, it gave…
-
-1
votes1
answer87
viewsDoubt which variable to pass from my Select
I have two selects, both consult the database. I have Equipment, and Operations... When selecting equipment x in select, I will consult the database for the select Operations to pull only Operations…
-
-1
votes1
answer495
viewsInclude Button Loading - Bootstrap v4 - JSP
Hi, I’m trying to change a button where when it’s clicked. Your content is changed to show a "loading" and after loading the page the button goes back to the previous state. I have tried several…
-
-1
votes0
answers9
viewshow to load database data on jsp jstl screen
ola have a jsp and jstl screen on the java system, on this screen loads database data by select, screen codico: <%@ page language="java" contentType="text/html; charset=ISO-8859-1"…
-
-1
votes1
answer35
viewsTable does not display data
The table doesn’t show the data, but I’ve been going over it for four hours and I don’t think anything’s wrong package dao; import Connection.Conexao; import java.sql.Connection; import…
-
-2
votes1
answer187
viewsUsing Javascript with AJAX
I have a form on a JSP page. When the customer enters the CPF, via AJAX, I take the CPF I make a query in the bank, if she has already registered. I take all the data from it, and fill in the fields…
-
-2
votes1
answer39
viewsHow to show the person’s name on the welcome screen?
<jsp:useBean id="calcula" class="br.com.projetojsp.bean.UsuarioBean" type="br.com.projetojsp.bean.UsuarioBean" scope="page" /> <%@ page language="java" contentType="text/html;…
-
-2
votes1
answer394
viewsJDBC Mysql Related Eclipse Error
I am trying to connect the mysql database from my JAVA application. But I get this message: org.apache.Jasper.Jasperexception: An Exception occurred Processing JSP page /index.jsp at line 31 28:…
-
-2
votes1
answer32
viewsProblems when registering at the bank
Friends, I have a system to control productivity of each analyst, I am a beginner and I am starting with JSP and SERVLET + JPA and I have the following scenario: I am trying to register an analyst…
-
-2
votes1
answer48
viewsIllegalstateexception
Good afternoon, I have a simple web application (JSP / Servlets), which when starting on Tomcat 8.5.16, does not "run" and sends the following message on Catalina.out: INFO [Abandoned connection…
-
-2
votes1
answer25
viewsChanges to JSP code for HTML only
How can I include a form in my JSP page with Bootstrap 4. I’ve tried to create a form that follows the bottom around my form but it didn’t work. Or better, how can I use HTML5 only without JSP tags.…
-
-2
votes1
answer405
viewsFill a select according to another select with Jquery
Someone can help me with this logic? Next I am filling a select Manufacturer with data from a json using Jquery, the problem is that I can not think of a way to fill the other select Model according…
-
-2
votes1
answer70
viewsHow to create Divs with Specific Images?
What is the best way to create Ivs with the images below using CSS? I would like my dashboard to look exactly like the image you have as an example. I created two classes to try to insert, but the…
-
-2
votes3
answers56
viewsHow do you put a div that’s inside a container under each other?
I’m having the following problem, my Divs are getting online, I’ve tried several ways to try to insert one under the other, but it still doesn’t work. The correct would be to stay in the format…
-
-3
votes1
answer192
viewsjava.lang.Numberformatexception: null
I’m getting the following error: java.lang.NumberformatException: null; My code: <%! int a; %> <%! int b; %> <% String getTest = request.getParameter("testJava");…
-
-3
votes1
answer14
viewsselect a column in specific or sort table by id, Postgresql JSP and JSTL
Well I have a project with Postgresql, JSP, JSTL and SERVLETS, where on a screen I have a place that updates a product and another place that shows the table of products, the problem is that I do…
-
-3
votes1
answer98
viewsHow to use an Alert without giving Refresh on the Page?
So, I’m doing a client registration with Java web (jsp) and Servlet, where I receive in my registration database the form data and check if there is already Cpf. The code goes right down. try {…