Questions tagged as 'servlet'

0
answers

JSP does not display images or find CSS and Javascript

Good evening, I have a strange problem, I'm trying to display images, map CSS and JS in jsp and it's not working, I just can not find it, the strangest thing is that I'm using the cst tag: "jstl / core" $ {pageContext.request.contextPath} and...
asked by 29.02.2016 / 23:11
1
answer

Wait for servlet to complete action, and refresh screen with js

var formData = new FormData(); var xhr = new XMLHttpRequest(); xhr.open('POST', 'ServletMessage', true); xhr.send(formData); and I write this value in the database, the problem is that the page refreshes...
asked by 06.04.2016 / 21:45
0
answers

Servlet to add Contacts in mySQL does not work

I have an html sending request to a servlet which responds with error however when I run a testaAdicionaContato class. mySQL 5 table: create table contatos ( id BIGINT NOT NULL AUTO_INCREMENT, nome VARCHAR(255), email V...
asked by 01.03.2016 / 23:16
0
answers

How to upload files to my server using Java servlets

How to upload files to my server using Java servlets, and after uploading the file return the url in which the file is located, where the name originates from the date and time the file was sent so it does not act replicates of names, would anyo...
asked by 29.01.2016 / 13:39
0
answers

How to generate / send (Server-Side) JSON via Java and receive via JQuery (Client-Side)?

I'm having trouble exchanging information between my web application (client) and my application java on the server side. I'm trying to query the server via JQuery and expecting to get a json return. On the server side I am...
asked by 18.12.2015 / 11:55
0
answers

getNamedQuery returns null

I have a namedQuery that for some reason is returning null results from the database. The namedQuery itself: @NamedQuery(name="Usuario.userLogin", query = "SELECT u.email, u.senha FROM Usuario u WHERE u.email = :mail AND u.senha = :senha")...
asked by 23.10.2015 / 14:14
1
answer

How can I tunnel tcp with java?

The idea is this: Create a classe that keeps an eye on the eventos of socket client and when it receives data to classe it redirects to the client that is connected in app. how to do this in java?     
asked by 09.12.2014 / 05:16
1
answer

Problems registering for bank

Friends, I have a system to control productivity of each analyst, I am a beginner and I'm starting with JSP and SERVLET + JPA and I have the following scenario: I'm trying to register an analyst with a user (user to access the system for a...
asked by 23.02.2018 / 05:53
3
answers

Passing Attributes from a Servlet to a JSP [Closed]

Hello. I'm developing a system where the user clicks an edit button and then opens the edit page with the attributes of the object already filled in the text boxes. In my servlet, I'm using the following logic: Moto escolhida = new Moto();...
asked by 03.10.2017 / 13:50
1
answer

How to link a link to an object? Servlet

I have a servlet solution, I have a form written in html, save the data in a database, I get this data and I have an html table, in this table it has the attributes of the person object, one of the values of these columns is a link, when the use...
asked by 26.09.2015 / 03:52