Questions tagged as 'servlets'

1
answer

Problem Delete MySQL data from a list in Servlet

I have a problem deleting a record. This is my class Queries where I delete a user. public static int Borrar(int id){ int estado=0; try { Connection con = Consultas.getConnection(); String sql = "call eliminar(?)";...
asked by 06.05.2017 / 01:35
0
answers

Encoding Java shows non-readable characters

I am deploying a Java Servlet in Weblogic, The only drawback is that I am bad at encoding, it comes from a properties file (.properties) and it is UTF-8. When I execute it, it gives me the following output: link ��srjava.util.HashMap��...
asked by 18.04.2017 / 01:52
1
answer

Databases related to hibernate

I made a migration to hibernate a crud and everything went fine until I lacked the last phase where two tables are related; but the problem is that you do not make the relationship. I made a small relationship, but it does not work whe...
asked by 26.01.2017 / 21:17
2
answers

Structure of a servlet

I'm new to this and I do not quite understand the structure of a Servlet, it just seems to consist of 3 methods doGet, doPost and processRequest, no? But at what moment does each one run?     
asked by 24.05.2016 / 16:45
2
answers

help Servlet sending parameters

I'm trying to get the value that it picks me up from the session started, I listed the students in this table but I do not know how to capture that value captures it in value but how do I capture it in the servlet? already try the name="nIdeEmpr...
asked by 24.05.2018 / 03:38
1
answer

Servlet: sendRedirect () does not work when queried from the browser bar

I have a Servlet that responds with a sendRedirect() when there is a query GET by the browser. In case there is one, the user is redirected to a second Form .  The problem is with the security of the application. If I...
asked by 23.06.2018 / 21:53
1
answer

Connect java and javascript [closed]

You can inform me about how to pass variable values between java and javaScript, as well as how I can call java methods from javascript Thank you very much for your help.     
asked by 31.05.2017 / 14:56
1
answer

How to pass data that a servlet gets from a BD to an HTML page? no JSP

This is more a doubt of something that could be feasible to carry out. What I want to do in itself, is that from a servlet I communicate with mysql to get the results of a table, and I want to pass that data to a table on an html page, I know...
asked by 26.04.2017 / 05:44