Questions tagged as 'java'

1
answer

How to validate a form correctly?

I'm studying Java EE, but I'm having a hard time doing validations on data entry forms. My servlet CadastrarInstrutor collects the form fields and checks their contents. Below is the code for my JSP page (I put only the content of the...
asked by 25.10.2015 / 16:58
1
answer

How do I remove a view created in the java code by the Id of this view?

How do I remove a view by the ID? Because in my application it has an "add" button to add a group of components that "group" which is a LinearLayout has a field and an "X" button of delete. When you press the "X" button it has to delete on...
asked by 07.10.2015 / 20:03
1
answer

Why is the FloatingActionButton transparent?

I have a problem after I updated lib support.design:22.2.0 to 23.0.1, floatingActionButton became transparent when run in API 10. Here is the code: <android.support.design.widget.FloatingActionButton android:layout_height="wra...
asked by 11.10.2015 / 03:51
1
answer

How to configure Jersey 2.22 in the project?

I'm having a hard time configuring the Jersey 2.22.1 in my web project that is deployed on the Tomcat 8 server, which I am developing on Netbeans. Note: I use maven. I have read and reread documentation but it does not fit into my...
asked by 28.11.2015 / 22:24
2
answers

400 (Bad Request) when sending array to Spring Controller using AJAX

   POST link 400 (Bad Request) I'm getting this error when trying to send 2 array's to my Spring controller, however I'm getting this error, I tried some solutions I found in SOen but I did not succeed. The version of my Spring is 3.0.2....
asked by 08.10.2015 / 20:36
1
answer

Error installing Jboss forge

I'm trying to install forge on my machine (windows 10) via prompt. however when executing the command:    C: \ Users \ Leonardo \ Desktop \ forge-distribution-2.20.1.Final-offline \ forge-distribution-2.20.1.Final \ bin \ forge T...
asked by 29.11.2015 / 19:11
1
answer

Class version in java

I would like to know if in java you have how to specify a tag, or manifest, or something of the type for a class or library and can query this within the Java code itself type: @version 2.6.5 Class Pessoa { ... } and in another part of the...
asked by 27.11.2015 / 17:27
1
answer

Download via FTP with JavaScript

I would like to know how I can be putting on my page the user's option to download via FTP. I do not want the user to enter the information for FTP access and also that he does not see the FTP data he is accessing to download. Is this possibl...
asked by 30.06.2015 / 21:23
1
answer

Pass extra parameters via gcm (google cloud message) - Cordova

When I send a notification to gcm , I added a parameter in the url called 'appUrl'. And when I open my Cordova app, I need to pass this parameter to index.html so that I can redirect my application to your devitor instead. Howeve...
asked by 26.06.2015 / 04:30
1
answer

Java how to do a native query and return to a DTO list

I am using Spring Hibernate and am trying to do a native query with JOiN returning to a DTO list. I tried using @Query (value="", nativeQuery = true) with a List but it returns the serialized attributes. I also tried with @SqlResultSetMapping in...
asked by 27.07.2015 / 18:33