Most voted "servlet" questions
Servlets are programs that run on a web server or application server, acting as an intermediate layer between the request coming from a web browser or some other HTTP client and a database or application that runs on the HTTP server.
Learn more…191 questions
Sort by count of
-
0
votes2
answers40
viewsIdentify the input URL of a Filter
How do I identify by which URL a filter is being accessed? My situation is as follows: I have the class below: @WebFilter(filterName = "FiltroLogado", urlPatterns = {"/alterar.jsp", "/deletar.jsp",…
-
0
votes0
answers135
viewsJava/Mysql - Query error
Hello, I am trying to make a simple application to register in the bank with Java and I am getting the following error: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error…
-
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
answer107
viewsError trying to access JAVA WEB database
When I run the program the following error: HTTP Status 500 error - Internal Server Error. java.lang.Runtimeexception: java.sql.Sqlexception: No suitable driver found for…
-
0
votes1
answer127
viewsJava filter and working with Servlets
Good afternoon, everyone, I’m going through a really boring problem, it should be a small detail to solve the problem and I’m lost on how to seek this information that I lack. Well, enough crying…
-
0
votes2
answers1768
viewsHow to Pass Parameters in Jasperreports
Hello Guys good afternoon I’m having a doubt that is killing me. I have a project that has to print out a report that contains two lists and two tables. My problem is this, I have no intention of…
-
0
votes1
answer337
viewsHow to submit via java post?
In a system all data is exposed via URL due to the sending method GET. I need to send via POST. Code: <!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1">…
-
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
answers414
viewsEclipse error using Tomcat 9.0 Tomcat server - Error 404
I’m trying to run a web site using Servlet Tomcat9,where the user will enter his salary, and according to the salary range will be made a readjustment on this old salary! The language used is JAVA I…
-
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
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
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
answer337
viewsHow do I take values from a row that are in a jstl list and send them into the respective input text on the same jsp page?
Good afternoon guys! I’m using "Jsp, Servlets, and jstl". I have a list where I have a link called change, when I click I get the values from that list line and send to the same jsp where there is a…
-
0
votes1
answer71
viewsHow to Download SQL Server File using Servlet
I have a basic application where I save files in the database SQL Server using Java, the part of insert into the bank I’ve done, I’d like to know how to download the file that is in the bank via…
-
0
votes3
answers253
views -
0
votes0
answers32
viewsThere is a way to save an Araaylist<Food> in the MYSQL database
Here’s my situation: I’m putting together an app that indicates meals . So I have a table called food, which has as fields: idAlimento, name, measure For example: 1 , rice, 100 grams 2, feijao, 50…
-
0
votes0
answers38
viewscreate Selector with doGet mode
Can you help me do this exercise? I need to create a way doGet and then create another file to be the output of my Save the problem and I have no idea how I do this junction between the two...…
-
0
votes1
answer73
viewsLoad Json data via Ajax
Guys, how do I load the json data into a table in html? The table is mounted, the script I’m pretty sure is right, to print the data in the table, but I think there’s something missing, sap, maybe a…
-
0
votes1
answer471
viewsError - java.util.Date cannot be cast to java.sql.Date when saving data
When trying to write the data to the database, the program points me to this Exception:java.lang.Classcastexception: java.util.Date cannot be cast to java.sql.Date. The first code slime is Servlet…
-
0
votes1
answer191
viewsBest way to set up the HTTP header content-length
Hello, I have a video player that makes a request via Servlet that already works and I need to include a new video. At first I will return the video according to the logged in user. The problem I…
-
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
answers57
viewsServlet does not receive the URL parameter
I’m trying to create a basic password recovery system. Each user has a token stored in the database and when trying to create a new password, it would be stored in the same account as the token…
-
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
votes0
answers5
viewsError running Servlet Nullpointerexception
Hello, create a Servlet to be able to make changes to users registered in the bd. In this excerpt I try to recover the employee data by id and redirect to the change page: @Override protected void…
-
0
votes0
answers18
viewsHow a text input box in a jsp page can receive the value of an sql query
I want to send the result of a SELECT COUNT(*) FROM tabela for an input text box on the jsp page: On the page dao I have: public int getRowNumber() throws SQLException { int numberRow = 0; String…
-
0
votes0
answers36
viewsSet multiple initial paths for different packages in Spring Boot
I use: spring boot 2.2.4.RELEASE The need arose for me to use two different paths in my classes annotated with @Restcontroller @Requestmapping, today my application.propeties is as follows:…
-
0
votes0
answers10
viewsRadio Button to Servlet?
I am learning web application in college and need a lot of help from you, I have researched a lot but I have not reached any conclusion.. I’ve tried w3school and Videos in English.. I know it’s a…
-
0
votes0
answers24
viewsSecurity Failure | Java Web Authentication
Context: I am building a CRUD in Java Web to study and acquire knowledge. I am not using any Framework, only JSTL to have more elegant code in Jsps. I recently implemented system authentication…
-
-1
votes1
answer910
viewsHow to connect a link to an object? Servlet
It was made a solution proposal in Servlet, I have a form elaborated in html, save the data in a database, take this data and dispose in an html table, in this table has the attributes of the person…
-
-1
votes1
answer114
viewsJava Web Project
To program Java Web, you need to use the Javaserver Faces extension or I can only use HTML pages with Servlet? And what’s the difference of using without JSF?
-
-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
votes0
answers18
viewsError HTTP 404 - The requested Resource is not available How to resolve?
Hello, guys, sorry to bother you, but I’ve searched a lot about this problem in forums and videos, including in English, but I couldn’t solve it. I followed the steps of this tutorial:…
-
-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"…
-
-2
votes1
answer50
viewsError while running Servlet
While running my project. I received an error message. Tomcant is running and I have a contact class and a contact server. Code contact package com.dev; import java.util.Date; public class Contato {…
-
-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
answer513
viewsGRAVE: Allocate Exception for Servlet
I’m afraid of this mistake! I’m using Tomcat 8.5 Code package br.com.controler; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest;…
-
-2
votes1
answer168
viewsHow to separate and identify objects within an Ajax request, with data coming from Servlet via Json?
How do I separate the objects inside the Ajax? The Servlet sends a list of objects to Ajax, but I can’t separate them inside the Ajax to be able to pick up an attribute from a specific object, for…
-
-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
answer105
viewsNo suitable driver found Mariadb
I am trying to insert a tuple of data into a DB using JDBC through a web page. I took a class ConnectionFactory to encapsulate the connection with Mariadb, I imported the driver to the classpath,…
-
-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 {…