Posts by G. Falcão • 172 points
13 posts
-
2
votes2
answers83
viewsA: Is it possible to pass an array per parameter without instantiating it?
If I understand your question correctly, you want to pass directly a list of objects, I believe the code below work: User user = new User( email, passwords,…
-
0
votes0
answers209
viewsQ: FAIL - Application already exists at path /Test
Good evening! I’m having problems with Tomcat and Netbeans, it follows with the following error message? Implantação em andamento...…
-
2
votes1
answer370
viewsQ: Pick up a XML list in JAVA
I’m trying to get an XML list but I can’t put it in the variable. Main class: import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL;…
-
0
votes2
answers231
viewsQ: Difficulty reading XML in Java
I’m trying to learn, and I’m having a hard time reading an XML by taking it via the Web and turning it into an object. There is a ready code in which it connects to the site, and another that a…
-
1
votes1
answer92
viewsQ: Problems with hashmap getordefault in java
I have a hashmap problem, in JAVA. I’m trying to create a program that reads data from a car, save these cars in an Arraylist and organize, by the manufacturer(that would be the key) the cars of…
-
1
votes2
answers53
viewsQ: Loop counter is not incrementing
I’m having a hard time finding the error in a logic that I use for traversing an arraylist. List<Caneta> canetas = new ArrayList<>(); canetas.add(c1); canetas.add(c2);…
-
0
votes1
answer571
viewsQ: Open link from a checkbox using Javascript
I need to open a link in the same tab from a checkbox, where I will pass parameters. This is the HTML: <div class="prog"> <legend class="">Genero</legend> <form action="#">…
javascriptasked G. Falcão 172 -
1
votes0
answers40
viewsQ: List 5 objects from a List
I’m putting together a panel that should show 5 products, for example, on a page index, but I can only load all the objects that are saved in the comic book, and I can’t think of a way to do that,…
-
0
votes0
answers72
viewsQ: Glassfish duplicating directory
When saving a photo, instead of creating the directory ends up duplicating, apparently it puts the first directory of the Glassfish server and in the other one what I had mentioned, for being layman…
-
2
votes1
answer313
viewsQ: Problems with JPA, @Onetoone and mappedBy
I have three classes, Person, Client and Address, being Customer Person’s child and Address adding Person. Segue Pessoa: @Entity public abstract class Pessoa implements Serializable { private static…
-
3
votes1
answer253
viewsQ: How to upload information from a BD to the form?
Hello, everyone and good afternoon! I will explain my problem and point out that I would like you to solve only with PHP, but almost sure I need another language. I would like in a form, in a tag…
-
-1
votes2
answers3555
viewsQ: Delete record by ID in PHP
Good night, you guys! I’m having a GIANT difficulty to delete a BD line by PHP, I imagined the following by the code below: the $line would receive the array with all the BD records,and from it…
-
0
votes2
answers692
viewsQ: How to create a div with height in percentage?
Good, guys! I have a question. When I create a div/footer/header and I will in css edit your dimensions with you quietly put the width 100%, however the height I can’t edit with percentage, only…