Posts by Vinicius Falcão • 156 points
9 posts
-
0
votes1
answer145
viewsA: Remove tag in XML generation with Xstream
In accordance with this post, you can use the Annotation @XStreamImplicit as follows: @XStreamImplicit(itemFieldName="OrderLine") ArrayList<OrderLine> orderLines; Or using the method…
javaanswered Vinicius Falcão 156 -
1
votes3
answers1617
viewsA: Set value 0 when the number is negative
To avoid using signals, use unsigned, question already answered in stackoverflow in English.…
mysqlanswered Vinicius Falcão 156 -
1
votes1
answer288
viewsA: No Mapping found for HTTP request with URI [/Milicia] in Dispatcherservlet with name 'Dispatcher'
Apparently the mapping is not working as the Warning is giving: 16:31:47.571 [http-nio-8080-exec-4] WARN org.springframework.web.servlet.Pagenotfound - No Mapping found for HTTP request with URI…
-
0
votes1
answer60
viewsA: Does Java’s Try-catch-Resources flush automatically?
Whether or not the flush is automatic depends on the implementation of the concrete class you use. Try with Resources expects only Closeable or Autocloseable objects, it is not directly connected to…
javaanswered Vinicius Falcão 156 -
1
votes3
answers428
viewsA: CSS right in the HTML tag
It depends, if the style you will assign can be reused in some way by another component, ideally you separate into another file, however if you intentionally want that style to be used only for that…
-
0
votes5
answers711
viewsA: Change Divs with the same class
<script type="text/javascript"> $(document).ready(function(){ var valores = $('.valor'); for (i = 0; i < valores.length; i++) { var valor = valores[i]; …
-
6
votes3
answers1870
viewsA: Assign value to variable in method declaration
No, in java you cannot assign a default value in this way. Now you can get this behavior of "default value" in one method in other ways. Example: public void teste(Boolean b){ if(b == null){ b =…
javaanswered Vinicius Falcão 156 -
0
votes1
answer1163
viewsA: Sending XML to webservice
Apparently the approach is correct, basically you are creating a SOAP request, adding the parameters in the body of the request where one of them will be the XML converted into String and triggering…
-
2
votes2
answers2202
viewsA: Update of several records together with select
I don’t know if I got it right, but come on. Your subselect may not contain the IN , you will have to put an alias in the table you want to update and use this alias to access the current update row…