Questions tagged as 'servlet'

1
answer

JSP with Servlet

I'm trying to make the servlet work as a controller I was following the caelum handout but I can not find the error o jsp aservlet@WebServlet(urlPatterns="/LoginInfo") public class LoginInfo extends HttpServlet { public LoginInfo(){...
asked by 21.06.2017 / 01:35
1
answer

Load data from a list of a method in the servlet

Good afternoon person! I have this method in the servlet that returns a list of values. How do I load the values it has with jquery? @WebServlet({"/ControleMovEstoque","/template/buscaMaterialExist.html","/template/cadEntradaEstq.html"}) publi...
asked by 31.03.2017 / 21:40
1
answer

HTTP Error Status 405 Servlet

I've been doing the "5.5 First Servlet" exercise on Caelum's Java Web FJ21 handout, I made the code, restarted Tomcat as requested but when I open the link "http: // localhost: 8080 / fj21-agenda / oi "> link " to access the page the error occur...
asked by 21.05.2017 / 16:35
1
answer

Execute servlet before loading index.jsp

I'm trying to run my servlet before loading index.jsp because the information contained in the index comes from a query in the database. I tried using <jsp:forward page="/servlet"/> But it did not work. How can I do this?     
asked by 26.08.2016 / 00:21
2
answers

Error running Java program - Mapping Servlet Web.xml

I have the following software, it should allow me to pass a file, it will issue a message in the console just to positively access a class and list the result on the page, I'm starting and I do not know the reason for the following error: Th...
asked by 28.10.2015 / 23:42
1
answer

Ajax Request Returning in White

Alright? My question is this: I am making an ajax request for my servlet and its return is being blank. JS: $('#pesquisar').click(function() { $.ajax({ url: '../UsuarioController', type: 'POST', data: {nome_pe...
asked by 15.11.2018 / 20:35
1
answer

How to send via post in java?

In a system all the data is exposed via url due to the method of sending: GET I need to send via POST code: <!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <title>Insert title here</title> </...
asked by 23.08.2018 / 01:37
1
answer

Mirroring Apache Tomcat - Work

Explanation: Currently when we update our client's project it is "out of breath" during this update, the idea is to be able to update the project without stopping the client, I saw something related to tomcat WORK but nothing very explanatory, s...
asked by 08.05.2018 / 15:31
1
answer

Insert accented word in MYSQL

How can I correctly insert accented words in MySQL? Example: if you try to insert "John" you are recording John. MySQL is as Collation utf8-default collation I get the input data "name" below: <%@page contentType="text/html" pa...
asked by 29.01.2018 / 02:22
1
answer

How to do otherwise?

I'm getting this error when I try to load data into the page via Ajax. Is there another way to send Json objects from the servlet to the JSP without using document.write ? error: "A parser-blockingis invoked via document.write."...
asked by 27.01.2018 / 22:33