Questions tagged as 'servlets'

1
answer

How to call a java method from a button in jsp, help please!

Hello good afternoon friends, I hope and they are well, previously I had already asked in another occasion and because here I will write it again not to cause confusion, I have this java code that later I put it in a method that I did public...
asked by 30.05.2018 / 19:33
1
answer

How to call a java method from a button in jsp, help please!

Hello good afternoon friends, I hope and they are well, previously I had already asked in another occasion and because here I will write it again not to cause confusion, I have this java code that later I put it in a method that I did public...
asked by 30.05.2018 / 19:33
1
answer

How to get the number of elements that a JSON has with GSON in Java?

From the Front-end I send the file JSON , then in the Servlet , through GSON I transform it into an object: PrintWriter out = response.getWriter(); String texto = request.getReader().readLine(); Gson gson...
asked by 23.05.2018 / 20:50
1
answer

Servlet not to return to the previous page

Hi, I'm trying to get the information from the previous page (you show me the menu with the data loaded) to the login no longer appears and redirect me to the login I already managed to not enter without a login but when I went back to the pa...
asked by 23.05.2018 / 18:26
0
answers

How to search data - DAO Factory

I have a query, I am learning the methods mvc, dao and factory, for it I made a small list and form with connection to mysql database, where I want to list a table and also look for the records of that table that are in a certain range. I was...
asked by 15.05.2018 / 12:25
1
answer

Tomcat 8.5.31 with Netbeans 8.2: Error

I have a project in Java and I change the contenedor de Servlet Glassfish per Tomcat . The problem is that Tomcat does not work, it throws the following error:    Starting Tomcat process ... Waiting for To...
asked by 09.05.2018 / 16:50
0
answers

Verify token expiration in servlet

First time I'm in the tokens, I'm using jwt in java. I manage to generate the token without problems, I send it as a parameter to a servlet through a url and I show it. What is not done, is how I should verify that the token has not expired....
asked by 01.05.2018 / 18:42
0
answers

Servlet DO NOT REDIRECT

Good morning, what happens is that I have a servlet that does not redirect me to a .JSP called "search" but to another that I have created called "error.jsp". This only happens if I add the If (); What will I show next, if I remove it if it redi...
asked by 27.04.2018 / 09:43
2
answers

Doubt about servlets and jsp

The question is this, I have a jsp that consists of a simple form to edit the data of an object (clients), but for that to be possible, I must first check that the object to be edited exists on a base of data. So everything is perfect, just simp...
asked by 22.04.2018 / 22:50
1
answer

Run a program with Selenium on Windows, remotely from an Android app? [closed]

I'm doing an application on Android , which sends requests to a program, which I have on a virtual machine, with Windows operating system , this program performs a series of Actions with Selenium depending on the request you receive, is a J...
asked by 16.04.2018 / 21:40