Questions tagged as 'servlets'

1
answer

Eclipse Java EE can not find javax.servlet?

I am setting up a new server, as always in a Eclipse Mars (4.5.2) Eclipse Java EE IDE for Web Developers , I had a problem with the installation of the server, I deleted it and found this bug that is already fixed, but now, when importing the...
asked by 11.05.2016 / 09:40
1
answer

add element within another XML element DOM

this is my code: public class agregar extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { String nombre= request.getParameter(...
asked by 26.11.2016 / 22:35
1
answer

Error updating and deleting users - JSP and Servlets

When I exceed 10 characters when changing the user password, I get this error: And when I want to delete I get this error: CODE of UpdateUsers.jsp: <%@page import="pe.edu.sise.bean.ErrorBean"%> <%@page contentType="t...
asked by 18.09.2016 / 08:02
1
answer

Problems showing data in the index.jsp with ajax

I have a code that does not work for me, I need the index.jsp autorefresque with the query a bd from servlet. index.jsp                                                                                      <title>WP Não Fechado&...
asked by 15.06.2016 / 18:46
1
answer

Problems with DataSource on a tomcat server 8

I have a web project on a Tomcat server (Windows 2008) with a MariaDB 10.0 database, for the connection we use the mysql driver "mysql-connector-java-5.1.36-bin.jar". I have made a migration from TOMCAT from version 6 to 8. Apparently everyth...
asked by 24.08.2016 / 15:38
1
answer

assign variable

How can I pass the value of String user to User user? public Usuario valida(String usuario) { System.out.println("Ingresa a metodo Valida BnUsuario: "+usuario); Usuario user = null; Connection con = null; Statem...
asked by 01.10.2018 / 22:25
1
answer

How to make a servlet wait to see if it has uploaded the file before redirecting

I wanted to ask you if it occurs to you how to do that after uploading a photograph to a folder on the server, from the same servlet that uploads the image it is verified that the image is fully uploaded before redirecting to another page. Ev...
asked by 28.05.2018 / 15:34
1
answer

Difference between @WebServlet ("/") and @WebServlet ("/ *")

When creating a servlet , what is the difference between using the following patterns to define the URL? "/" and "/*" , using annotations and the specification 3.1. @WebServlet("/") @WebServlet("/*") Which of these URL...
asked by 23.07.2017 / 16:56
2
answers

Problem to show JSP variables in javascript alert ()

I am testing warning messages on my website, I am collecting values passed through the session and showing them in an alert. In this first part I get the values, check it and pick it up perfectly <% String registro= (String)session.getAt...
asked by 15.08.2018 / 19:18
1
answer

Java: Use GET and POST in the same Form

What I want to do is send the parameters from Form to POST and then through the method GET consult the BBDD for room availability and send that result through Ajax (Vanilla Javascript) to HTML But from...
asked by 13.03.2018 / 20:37