Posts by Renato Serra • 76 points
7 posts
-
0
votes1
answer693
viewsQ: Database Test with Spring Boot
I’m having an error, when running my application with profile test, Spring Boot does not create the same database in the local profile. Any suggestions? Follow my application-local file.properties:…
-
1
votes2
answers28857
viewsA: How to pass input value to Javascript function
I don’t think that’s the best way to do it: <head> <script> function funcao(nome, email, telefone) { alert("nome: " + nome +" email: "+ email +" telefone: "+ telefone); } </script>…
-
0
votes1
answer94
viewsA: Input formatting
I found your question a little confusing but I’ll try to help you with the first part, to "read two integers (separated by space)" I modified some of your code below: BufferedReader entrada = new…
javaanswered Renato Serra 76 -
1
votes1
answer572
viewsA: Send information from one JSP to another via Servlet
In Servlet you must take the ID parameter that you are not sending as follows: String id = request.getParameter("id"); To submit place a link put in any column of your table, informing the…
-
0
votes3
answers28262
viewsA: Update DIV Automatically (autorefresh) without updating whole page
I set a very simple example, you click on div and it changes. In a more real case you should call via ajax a backend and this return you the content, I hope to have helped. <body> <div…
-
3
votes2
answers1212
viewsA: Manipulating an Object class
From what I understand you want to do a Reflection, a researched on this, below I set an example for you, I get all attributes of the class Person. public static void main(String[] args) { Pessoa n…
-
0
votes1
answer79
viewsA: How do I make the student registration number of the logged in account stick in the published table?
I don’t know if I understand your question correctly, but what you need to do is simply take this select out of your Insert code and add one more line: stm.setString(1, getAssunto());…