Questions tagged as 'servlet'

1
answer

Send login and password in JavaMail email

I'm developing a web application using jsp and servlet and I would like it when sending the email it passes an image and the login and password but the email only send the image and does not send the login and password. / p> Image with error...
asked by 11.01.2018 / 02:53
1
answer

A function rotate endlessly in the Servlet

I have a servlet application that constantly receives POST requests, I do data processing and processing normally in its proper Java classes, but one of my applications it should not be run when there is a request, but every time of defined time...
asked by 11.01.2018 / 06:08
1
answer

What is the problem with this java class that consumes a rest service?

I have a servlet: import br.edu.ifpb.pos.model.Art; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOExcept...
asked by 21.12.2017 / 21:19
1
answer

Ajax does not return Json

Why am I no return on Ajax? It goes through the alert (over the for), but never enters the FOR. I'm not using any framework. Servlet: @Override protected void doPost(HttpServletRequest request, HttpServletResponse response)...
asked by 25.01.2018 / 23:42
1
answer

JSP Eclipse Project - Linking CSS style page

How to properly link my stylesheets in my JSP Servlet project? Below is the structure of my project. I also do not know if the hierarchy is correct. Help me. I'vealreadytried../webapp/style/estilo.cssandnothing.Itriedmodifyingandputtingthestyle...
asked by 30.04.2017 / 15:20
1
answer

Use request.getAttribute ("key"))

I'm passing a List list and want to retrieve it in jsp through the request.getAttribute ("key"): @Override protected doGet(HTTPServlet request, HTTPServletResponse response) throw new ServletException { List<Hotel> hotel=Hotel.list...
asked by 01.12.2016 / 19:48
1
answer

How do I get user id in a session?

I'm doing a project using jsp and servlet, I need when a user logs in, his id is stored in the session, so that with this id, the system knows that this id user is making changes to their (Example, phone change). How could I do that? Control:...
asked by 02.12.2016 / 00:26
1
answer

Convert String to Date (request.getParameter)

I have a form in JSP that performs a registration that has a date. <form method="Post" action="InserirCompromisso"> titulo : <input type="text" name="titulo" required="true"> local : <input type="...
asked by 06.03.2016 / 03:56
1
answer

JSF Project Image Servlet "Locking" the Application Server

I have the following code that gives my portal the images that are in the database @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String id = req.getParameter...
asked by 21.03.2014 / 13:09
1
answer

How to get values from a row that are in a jstl list and send into their respective input text on the same page jsp?

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 of that row from the list and send it to the same jsp where it has a form with the fields to be made the cha...
asked by 13.12.2018 / 20:51