Posts by squallsv • 111 points
6 posts
-
0
votes2
answers545
viewsA: Right structure to work with java (JSP)
Hello, I would indicate that you start with the basics, take simple examples of MVC(Model-View-Controller) patterns to start your architecture and web java studies. Here, below are some interesting…
-
0
votes4
answers3679
viewsA: Consume values from a webservice
You can use the command wsimport that comes in JDK itself. Open the cmd or terminal and type wsimport -d diretorio onde vai colocar os arquivos gerados + endereço do wsdl -Xnocompile. Here is a more…
-
1
votes2
answers329
viewsA: Javascript interact with Java
You would need to use AJAX on your page. If you’re using JSF, take a look at the tag f:ajax.(http://uaihebert.com/jsf-exemplos-simples-com-ajax/) JSP + Servlet:…
-
0
votes2
answers1136
viewsA: How to read a user-submitted file using Fileinputstream?
One of the builders XSSFWorkbook gets a InputStream as parameter. That being said, you can change the FileInputStream by a type of InputStream serve you better, like the BufferedInputStream or any…
-
-1
votes3
answers456
viewsA: Infinite object?
You could do it this way: public class Cao { String nome; List<Cao> caes; public Cao(String nome){ this.nome = nome; } public void setNome(String nome) { this.nome = nome; } public String…
-
0
votes2
answers914
viewsA: Consuming data from an external web service, how to instantiate the classes after the "import" of the WSDL?
It depends on how you translate the WSDL definitions. Using wsimport, it is very common for several classes to be generated, don’t worry about it, each class equals an important wsdl structure that…