Questions tagged as 'jsp'

1
answer

FTPClient in passive mode

I'm having trouble trying to connect to FTP. For FileZila, it works normally .... but when I try for this code, it generates the following exception: j ava.net.BindException: Can not assign requested address: JVM_Bind The error occurs when I c...
asked by 20.07.2017 / 21:06
1
answer

How to put a success alert on a data entry via ajax?

I'm moving on a project in progress and what I need to do in it is to put an alert and refresh the page after inserting data into the database. The data is being inserted through a worksheet, that is, each item is a row in the worksheet that con...
asked by 23.07.2017 / 01:49
0
answers

I can not update my object after being recovered

I'm trying to update my form after retrieving an object and I can not. My DAO public List<Contato> listar() { List<Contato> contatos = new ArrayList<>(); String sql = "select * from contato"; try (Prepared...
asked by 01.08.2017 / 03:32
1
answer

Pass and receive data for servlet in the same AJAX function

Is there any way to send parameter to servlet and receive a json in the same AJAX function? Example of what I need: function UpdateGrafico(){ $(function () { //--------------------- //aqui preciso enviar uma...
asked by 16.07.2017 / 01:51
1
answer

Passing JSP date to Servlet

I have a Datepicker bootstrap as below, and I have a button that should pass the date selected in the datepicker to the Servlet that will use this date as the parameter for a mysql search. How can I pass this date to Servlet? I have tried severa...
asked by 12.07.2017 / 03:23
0
answers

How to insert Google Analytics charts in HTML?

I need to insert the customer's Analytics charts into the dashboard of his site. How to do this? Example:     
asked by 07.07.2017 / 00:59
1
answer

Transforms in "dd / MM / yy" format

I've been doing the exercise 6.4 Optional exercises: Caelum's list of contacts with scriptlet and there's a question that says: " 2) Notice that the date appeared in a complicated way Try formatting it using the class SimpleDateFormat " I n...
asked by 04.07.2017 / 04:45
0
answers

How to receive the actual location of a file

I upload files to a folder, which works when running in eclipse. But when I try to upload through a browser, I am not allowed to upload it because of its security. My question is, is there any way to get the browser to return the file locatio...
asked by 06.07.2017 / 15:59
0
answers

How to update object using entity manager?

To create I used: public void adiciona(Produto produto) { em.getTransaction().begin(); em.persist(produto); em.getTransaction().commit(); } To remove I used: public void remove(Produto produto) { em.getTransaction().begin(); em....
asked by 21.06.2017 / 18:36
2
answers

Problem Handling a list of Objects in jsp

I'm trying to troubleshoot a list that comes from my controller in my jsp I believe I am not using the right way to treat and go through this list. Follow my controller that creates the list. @RequestMapping(value = "/show/{id}", method = R...
asked by 12.06.2017 / 15:12