Questions tagged as 'servlet'

1
answer

How to download SQL Server file using Servlet

I have a basic application where I save files in the database SQL Server using Java , the insert part in the database I already did, I would like to know how do I to download the file that is in the bank via JSP . As stored...
asked by 18.12.2018 / 20:57
1
answer

How to display list of servlet in jsp?

Good evening. Guys, I have a question which after N attempts does not clear up, so I decided to ask the masters for help. Basically, I have the following servlet: @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp)...
asked by 17.11.2018 / 00:08
0
answers

How to pass an array from angular to servlet

Non-Angled Method $ scope.saveListItem = function () { var params = {}; params.idLista = localStorage.lista; params.precoTotalLista = $scope.PrecoTotalLista; params.nomesItens = []; params.qtdItens = []; params.preco...
asked by 11.11.2018 / 02:49
0
answers

Receive a json as a Java Servlet parameter

I'm developing an API using java servlet , I'd like to know how to get a JSON in the request body as a parameter and write to a database? Example: { "nome": "José da Silva", "email": "[email protected]", "telefone": "(21) 9...
asked by 24.10.2018 / 22:26
0
answers

How to do a CRUD in the same FORM JSP-SERVLET

I have created a JSP page called TelaAreaCurso where it is composed of two grids, the one on the left is a form with the form and the one on the right a table that lists all the areas of the course registered. Below is the page described: &...
asked by 20.10.2018 / 17:37
0
answers

Wrong page redirect with servlet

I have the following method for logging users into the system: public void logarUsuario(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ try{ String email = request.getParamete...
asked by 01.11.2018 / 23:49
1
answer

How to make Ajax requests in Java [closed]

Good Morning I'm developing a Web application where I need something simple: when the user selects a state in a ComboBox , the system should update another ComboBox with all cities. I'm a .NET programmer and in this model I would use a...
asked by 15.10.2018 / 12:26
0
answers

javax.servlet.ServletException

I'm doing a basic user registration with Servlet . When I click the register button I get the following error page (everything has been reviewed and is working perfectly, I believe it is something related to Hibernate, but nothing I hav...
asked by 19.09.2018 / 05:57
0
answers

TOMCAT - HTTP Status 404 - Not Found

I know there are already other questions about this but their solution did not help at all, so I would like you to help me with my problem here. This is a project that uses Maven (normal) and Tomcat for server. What happens is that when I do...
asked by 22.08.2018 / 20:04
0
answers

Error in Eclipse using Tomcat server 9.0 Tomcat - Error 404

I'm trying to run a web site using Tomcat9 Servlet, where the user will enter his salary, and according to the salary range, a readjustment will be made at that old salary! The language used is JAVA I created the Beans and Web Packages, which...
asked by 25.08.2018 / 19:30