Questions tagged as 'servlet'

1
answer

HTTP Cache Headers in Servlets

I would like to know if there are libraries or solutions to handle requests containing headers such as Last-Modified , If-Modified-Since , If-Range If-None-Match , etc. and produce replies with Cache-Control ,...
asked by 24.12.2013 / 19:34
1
answer

What is the difference between sendRedirect and requestDispatcher.forward?

What is the fundamental difference between using methods response.sendRedirect("Alguma pagina"); and RequestDispatcher despachar = request.getRequestDispatcher("/Alguma pagina"); despachar.forward(request, response); Since "they do p...
asked by 02.10.2015 / 20:52
3
answers

What is a servlet and what is it for?

I've heard a lot about the term servlet , but I still can not understand it. What really is servlet ? What is it for? What is its applicability in practice?     
asked by 09.10.2015 / 19:11
2
answers

How to pass a file from the JSP to the servlet?

I have a .jsp page where I have an input file. I need to open this file to use the information in it. Suppose it's a pdf. I get this pdf, sending it to the servlet for the purpose of using it in my JAVA application. The easiest way would be to t...
asked by 08.07.2014 / 17:01
0
answers

Login with Digital Certificate (E-CPF, E-CNPJ) with Servlet / JSP [closed]

Hello. I want to develop a Login system similar to what government portals use (E-CAC, NFE and similar), where the E-CNPJ is used to login. I've done the following: 1) I created and signed an RSA private key for the server: keytool...
asked by 18.03.2016 / 22:36
2
answers

How to save the path of an image in the database?

I'm using JDBC and taking an image to save to the database. But I want to save the image to HD and save it to the bank only the path ( path ) of it. I wanted to know what is the best type I use to manipulate and save the image ( Imag...
asked by 18.12.2014 / 13:29
1
answer

Create inputs for images dynamically and switch to Servlet without redirecting page?

I would like to create a button that causes a input to appear for sending images. This button can be used multiple times. When the user clicks the submit button, those images must be sent to the server without reloading the page....
asked by 05.04.2016 / 23:39
2
answers

How do I pass the session from context A to context B within Tomcat 05

I try two applications made in Java using Tomcat 6 and are in different contexts strong> but one interacts with the other because they are integrated, I need one to pass their session to the other context, or that contextA can set valu...
asked by 05.01.2015 / 17:10
1
answer

Link does not send parameters and redirects to Servlet

I placed in my index page where I have three links one with the name of T-shirts, Bermudas and Pants in which% I put% so that when I clicked the link it was redirected to the servlet and sent the parameters according to the link, but that does n...
asked by 01.11.2017 / 20:48
1
answer

How to use redirect methods with Java Servlets

Hello, I have a server_server.jsp page with a form that when submitted goes to ServletInsertOrderService that inserts the form data into the database. I am trying to cause that when the data is entered, the browser returns to the server_ser...
asked by 09.05.2015 / 17:23