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
votes1
answer664
viewsValidation of fields with Javascript in JSP
function validar() { var nome = document.getElementById("nome_passageiro").value; var data = document.getElementById("dt_nascimento").value; var cpf = document.getElementById("cpf").value; var…
-
0
votes1
answer550
viewsSeparate content in the CSS menu
I want to leave the links of the pages Control Drivers,Control Passengers,Control Racing, the menu a little more separate but spaced, but I’m not getting. <%@page contentType="text/html"…
-
0
votes1
answer178
viewsJSP Database Connection
Hey there, guys. My problem is this : I have a JSP project, which used the Oracle SQL database. However, it came in handy that I used Mysql and installed . Mysql jar and I changed the Connection…
-
0
votes1
answer372
viewsEntering data automatically when loading the JSP page
I am developing a web application using jsp, in which I register a mototrista but soon when loading the jsp page the application already tries to register alone the driver data, thus giving the…
-
0
votes1
answer24
viewsError syntax in query with Postgresql JSP sort
I made a select in the database in which will make a query according to name, and order it but when executing select happened the following error. public List<Motoristas>…
-
0
votes1
answer357
views -
0
votes1
answer2103
viewsDynamically populate fields according to CEP JSP Javascript
I want that when typing my zip code and clicking on the search button, it returns the data from the street,state,neighborhood and Uf but when clicking on the search button it is not calling the…
-
0
votes1
answer230
viewsHTML + JSP form
personal created an html page with a simple form and I’m wanting to use the links in jsp 1) java class "Calculus": package principal; public class Calculo { public int n1; public int n2; public int…
-
0
votes1
answer135
views -
0
votes1
answer95
viewsNullpointerexception in Java web
I’m having a problem in a JSP that should insert a project to my work returning me as an error, this virtually identical an exercise I did earlier, so I don’t understand the reason for the error.…
-
0
votes1
answer191
views -
0
votes0
answers234
views -
0
votes1
answer225
viewsCalling foreach jstl DAO methods
I’m starting my jsp studies and came across the following situation: I want to use jstl foreach c:foreach and I want to use a list that is returned by my DAO method. <body> <jsp:useBean…
-
0
votes1
answer248
viewsHow to receive my array on the JSP page
public void Pesquisar(){ try { Class.forName("com.mysql.jdbc.Driver"); try { Connection conexao = DriverManager.getConnection("jdbc:mysql://localhost/CadastroProdutos", "root", "maquinarafa");…
-
0
votes2
answers154
viewsAccentuation problems in sql
I have problems accentuating the registration. If I register names with accent, they leave confused, I do not know if it is some sql problem. I already changed the utf8 for this but the text of the…
jspasked 7 years ago brunoangola 75 -
0
votes1
answer119
viewsDoubt about Filter - JSP
well I’m learning JSP and I’m trying to make a filter where the user is not logged in it redirects to a login page, and I’m not getting it. NOTE: I created a controller Servlet that makes Dispacher…
-
0
votes2
answers460
viewsNo result when sending data from a JSP form
I’m trying to make a mini-login screen, get the form compare data and after that redirect to a page JSP. <html> <head> <meta http-equiv="Content-Type" content="text/html;…
-
0
votes1
answer153
viewsIf the user accesses the home before logging in he must be redirected to the index using jsp
What verification should I do if the user directly accesses the home.jsp page without logging in? Noting that I am not using Servlet for this situation, only jsp pages. Code from home.jsp page:…
-
0
votes1
answer734
views -
0
votes1
answer73
viewsList 2 Tables in One Oriented Object
I’m doing some academic work. and I’m not listing the BD data, that is giving the error java.lang.Nullpointerexception I searched something similar found , I saw some examples however the way they…
-
0
votes1
answer73
viewsRequest problem via ajax
I have a JSP page to login to my system, but when trying to make a request via ajax to authenticate me, the form does not seem to be being sent correctly, as the redirection is done to the login…
-
0
votes1
answer353
views -
0
votes1
answer257
viewsAssemble a product table as a java jsp showcase
I’m having a hard time presenting a showcase product list using Java and JSP. I can get the data, but I don’t know how to fill this table using the <c:forEach> My table would have this…
-
0
votes1
answer1536
viewsconsole.log is not working
What am I doing wrong? Why is the.log console not working when I enter the variable via JSP? The following error appears: index.jsp:1 Uncaught Syntaxerror: Missing ) after argument list at eval…
-
0
votes1
answer588
views -
0
votes1
answer442
viewsSend login and password in Javamail email
I am developing a web application using jsp and Servlet and I would like that when sending the email an image is passed and the login and password but the email only send the image and does not send…
-
0
votes1
answer4499
viewsJava/JSTL - Table listing with c:foreach
I tried to list database information on a page JSP by means of the tag <c:forEach> but I’m not getting any return value. Bookoid: @Override public List<Livro> consultar() throws…
-
0
votes1
answer131
views -
0
votes1
answer203
viewsDoubts about the construction and relationships between classes and the mapping in JPA
In the following class diagram I am trying to make the following class relationships where a demand will have a responsible analyst and a requesting client. I wonder if my mapping is right if the…
-
0
votes0
answers97
viewsIllegal use of <when>-style tag without <choose> as its direct Parent
I am developing a web application using jsp and Servlet page and I would like to show the data of my Servlet in two repeat structures one with the produots and the other with the plots but this…
-
0
votes2
answers238
viewsprint a returned Servlet list in a jsp
Good morning, guys I’m killing myself to make my jsp return a list that comes from the BD, I’m taking the information from the bank and I can launch from Servlet to the jsp but not in an orderly and…
-
0
votes1
answer570
viewsHow to format a number in percentage within Javascript?
Gentlemen, I am developing a billing monitoring panel. I want to turn this number 56% directly into my Javascript code. Follow an excerpt of my code, it is directly fed by a query of my SQL. This is…
-
0
votes2
answers54
viewsProblem in the JSP Controller class
Hello, I need help, I have the problem in my system when I send an edit command. When I click on the edit button of the table row that I want, the screen turns white and does not show the options to…
-
0
votes2
answers101
viewsJSF Eclipselink - I can’t write information to Mysql database
I am using JSF in a college subject and the teacher has passed an activity. But I am not able to record information from a form. The connection is made, I can even perform JPQL queries straight from…
-
0
votes1
answer119
viewsHelp with foreach on jsp
I’m trying to make an if in a jsp file, but I can’t print out all the values that are in the products table. For some reason my code only prints the first product and in the table I have 3 products.…
-
0
votes1
answer157
viewsSum result redirect in JSP Servlet
I need to show the result of a sum on a redirected page, I tried a "setAttribute" after "Redirect" but it doesn’t work. The sum value would have to go to an "input" on the next page, or on an…
-
0
votes0
answers322
viewsjavax.servlet.Servletexception
I’m doing a basic user registration with Servlet. When I click on the sign up button I get the following error page (everything has been revised and is in perfect working, I believe it is something…
-
0
votes1
answer21
viewsDWR Framework - Does not run
I am trying to use the DWR framework to populate a select from the output of another select in my JSP. Only you have no action after selecting the first select. JSP 1º SELECT: <select…
-
0
votes1
answer98
viewsError in JSP page
Good evening, everyone, I am making a page in JSP, where the user informs 2 values and through a method, I do the sum of these 2 values and presents just below the value of the result. However the…
-
0
votes0
answers42
viewsRegistration N to N (many to many), where I need to send an Array according to the image
I am making a registration N for N (many for many), where I need to send according to the image an Array of medicines, Unit and posology. The question is how to take this Array in just one request…
-
0
votes1
answer99
viewsAjax Request Returning in White
all right ? My doubt is as follows: I am making an ajax request to my Serrvlet and its return is being blank. JS: $('#pesquisar').click(function() { $.ajax({ url: '../UsuarioController', type:…
-
0
votes1
answer188
viewsHow to view Servlet’s list in jsp?
Good evening. People, I have a question that after N attempts is not clarified, so I decided to ask the masters for help. Basically, I have the following Servlet: @Override protected void…
-
0
votes1
answer112
viewsProblems to close communication with the database
I have some applications consuming data from the database, but for a while now the applications are not able to close the connection, when I give a conexao.close(); Java says it cannot close because…
-
0
votes3
answers245
viewsReturn a SELECT * FROM" in the Javaweb browser
Hello guys I am studying Javaweb and I came across a boring mistake!! I’ve done a lot of research on the subject but I couldn’t solve this mistake. I have this method that is pulling all data from…
-
0
votes0
answers50
viewsObject Link
I am developing an application and came across the following "problem": @RequestMapping("/pagamentos") public ModelAndView pagamentos(FormaPagamento pagamento){ ModelAndView model = new…
-
0
votes1
answer88
viewsFilter empty or null value in JSP file using SQL
Good afternoon, I have an SQL query as code below where I have 3 filters, these filters use the clause Where, and e and but if one of the filters is blank the value returned is also blank. How can I…
-
0
votes1
answer341
viewsSelect option from c:foreach | JSP - JSTL
Goodnight, I need help with a JSTL code. I need to select an option listed by a c:foreach and send it to my Contoller. This data comes from the database. To better understand the logic, I have in…
-
0
votes2
answers213
viewsJava JSP return of age
I redid the class Idade and made a test with console and worked right the part. But JSP is showing error and I don’t know how it will do and how I will put in JSP to return age. //Classe Idade.java…
-
0
votes1
answer52
viewsHow to use concatenation function in JSP file
Good afternoon. I have an SQL query with 3 Where clauses, but I need to activate them only when the values are filled in. How can I make the jsp file recognize that for example field 1 is filled in,…
jspasked 5 years, 8 months ago Guilherme Montagnani 39 -
0
votes1
answer195
viewsSpring jsp Failed to Convert value of type 'java.lang.String' to required type 'int'
Hello guys I have the following error when I try to delete something from my table WARNING: Failed to bind request element:…