Posts by Maycon Stanguine • 104 points
12 posts
-
0
votes1
answer32
viewsA: How to pass a JSP-mounted list and traverse it in a JS function by extracting its values?
Assuming your Hidden "list_sem_inter2" is returning the list in this format: <input type="hidden" name="list_sem_inter2" value="[P1, P2, P3]"> Your JS will get this list as a String, so just…
-
1
votes1
answer48
viewsA: Illegalstateexception
Resolutive: I removed Tomcat from the computer (all of it, your whole folder!). I downloaded it again, I put War and it worked. Before doing this, I had already tried to remove only War, put lib’s…
-
0
votes2
answers62
viewsA: Database Image Inclusion - Longblob
Try: String fotoString = request.getParameter("foto"); byte[] foto = fotoString.getBytes();
-
-2
votes1
answer48
viewsQ: Illegalstateexception
Good afternoon, I have a simple web application (JSP / Servlets), which when starting on Tomcat 8.5.16, does not "run" and sends the following message on Catalina.out: INFO [Abandoned connection…
-
0
votes1
answer953
viewsA: How to make Ajax requests in Java
In the case of java, just make the request via Ajax to an address that will do the processing. The idela is to request a Servlet. Inside this Servlet, you would do the processing and return of it,…
-
1
votes1
answer1238
viewsQ: JPA error with Mysql 8
Hello, After updating my database, my application has been presenting exceptions, like java.sql.Sqlsyntaxerrorexception. The class below is the one he complains about, saying it doesn’t exist when…
-
0
votes2
answers596
viewsA: Path to JSP image
Thank you all, including William for your attention. The solution found was to generate a string with the bytes of the image and display directly. The method I created to return the string from the…
-
1
votes2
answers596
viewsQ: Path to JSP image
I need to display an image inside the tag img. It is a web project, running on Tomcat and Ubuntu Mate. I saved in bank as String the path to where the image is: "/opt/imagens/img.png" To display, I…
-
0
votes2
answers124
viewsA: Java: Copy file with 0 bytes
Thank you all! I analyzed all the code more carefully, and the problem itself was not in the method that made the copy. To solve, in the Runtime generating the file was modified. In short, the…
javaanswered Maycon Stanguine 104 -
4
votes2
answers124
viewsQ: Java: Copy file with 0 bytes
I backup the database normally and save it to a folder using getRuntime(). exec(). I use a very simple method to copy this file using Filechannel. But it turns out that the copy gets 0 bytes. It…
javaasked Maycon Stanguine 104 -
1
votes0
answers83
viewsQ: Group at Ireport (Jasperstudio)
Good afternoon, To create a report I do two searches, one in each separate table. After, I create a list only with the data returned from these two. Example: List<Venda> lista = new…
-
1
votes2
answers456
viewsA: Error in include JSP
I believe it is best to use absolute paths... <img src="/SuaAplicação/_img/editar.png"> <a href="/SuaAplicação/_global/topoErro.jsp">Editar</a> <jsp:include…