Questions tagged as 'servlet'

0
answers

Create session when making requests to the Web Service

I created a Web Service that brings results in JSON format to java , but sometimes when the user makes a request to the Web Service the same hangs and interrupts the whole service, would like to know if there is possibility to create sessio...
asked by 23.05.2016 / 14:25
1
answer

process 24x5 in jar how to convert to .war

I have created a jar to calculate forex signals, but I would like to host it on some server in the cloud. As I've been researching, it will be much easier to convert it to a war. Since my app is supposed to run 24x5, I'd need it to run around...
asked by 09.05.2016 / 03:59
0
answers

Ajax does not pass information to servlet

I have a problem with the code, the servlet is not called. Only works if I put action="FileUploader" in form. Is there a mistake? Do you have any other way to do it? What I need: An array of images, where images are received in a single multiple...
asked by 09.04.2016 / 22:53
0
answers

Flush in asynchronous servlet does not work

I am studying for web certification, and I came across a problem when trying to make a chat using long pooling, but precisely in the article: link I noticed that my client did not get the writing, so I wrote a basic example to see if the...
asked by 07.04.2015 / 05:03
0
answers

Error 404 Servlet [closed]

I have an error that is the following whenever I access the URL that my servlet had to answer it it presents me error 404, I am trying to access the servlet by that url: localhost: 8080 / project / a Here is the source code for the servlet:...
asked by 17.02.2015 / 17:12
2
answers

How to do single registration query

I have a JSP that on the same screen I make a query record. When I open the screen I basically have the fields for the registration to below a grid with the listing of the bank, so far so good, working. As soon as I open the screen, the bank dat...
asked by 18.08.2017 / 14:45
1
answer

How to convert Time type to String?

I have a horaConsulta field and I can not convert it to String DAO stmt.setTime(4, new java.sql.Time(consulta.getHoraConsulta().getTime())); Servlet Time horaConsulta = converterTime(request.getParameter("horaCo...
asked by 19.07.2015 / 19:28
1
answer

Send a servlet object array to a jsp page

I need some help I have a servlet that is returning an array object p with a select query. I would like to know how to display this object in my jsp in HTML input fields     
asked by 16.10.2018 / 03:12
1
answer

Redirection of sum result in JSP servlet

I need to show the result of a sum in a redirected page, I tried a "setAttribute" after the "Redirect" but it does not work. The sum value would have to go to an "input" on the next page, or a simple " <h1> ". The part of the "reques...
asked by 17.09.2018 / 23:22
1
answer

Servlet is responding but ajax does not reflect response

Good morning, I have a simple form in which I submit via ajax, so my servlet takes that result and gives an answer, from the answer, the ajax will do something. I can see the response in the browser, but I do not get the result in ajax. J...
asked by 17.01.2018 / 13:11