Questions tagged as 'java'

1
answer

Show result of a servlet list in JSP page

I need to capture an input name, query the database, and return the result in a jsp page. I want to show the result in a short section of the JSP page, in case I mix the JSP page text with the result I want to capture. jsp page with input  ...
asked by 17.03.2018 / 22:08
0
answers

extract data from the list

I made a few attempts, but I'm still picking up what I added in the code. How can I make this limitation within the code that results in the closing below? I lacked logic on how to implement reading data from text file. Here you have 4 if...
asked by 21.03.2018 / 13:52
0
answers

Is it possible to dynamically create a Java Endpoint Server? If not, would you use WebRTC?

Good evening. I am implementing a Chat service, where when clicking on the name of a user should open a private conversation window with it. Using Java, I am using WebSocket Server and Javascript for the Websocket Client. My problem is that b...
asked by 15.03.2018 / 02:21
0
answers

How to use super in java? [duplicate]

I know the basics of super, but for example: If I have a class with a person with attributes name, age and sex, and a student class with student attributes course, enrollment and period, and a student class Caller Scholarship, how do I have to...
asked by 15.03.2018 / 00:28
1
answer

Reading files in Java

public static void loadfile(stock []a) throws IOException{ String fich; File fichDad; int i=countDatas(a); while(sc.nextLine().length()!=0); do{ System.out.print("\nQual é o nome do ficheiro q...
asked by 15.03.2018 / 17:13
0
answers

InvalidRegistration when sending push notification with spring boot

Good morning! I have an implementation of an API that when performing certain function, a call is sent to the Firebase and generated a notification in the application. Well, I researched and implemented based on this tutorial: Tutorial link...
asked by 15.03.2018 / 15:51
1
answer

Error trying to query via HQL

I have the following entities: import java.io.Serializable; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persis...
asked by 15.03.2018 / 17:50
0
answers

Execute PLSQL anonymous block with Hibernate

I need to run multiple function in Oracle with Hibernate FUNCTION ISNUMBER(value IN VARCHAR) RETURN NUMBER DETERMINISTIC AS RC NUMBER; BEGIN IF (value IS NULL) THEN RETURN 0; END IF; RC := TO_NUMBER(value); RETURN 1...
asked by 12.03.2018 / 19:12
0
answers

Filter Datatable Primefaces does not work with p: selectCheckboxMenu

Talk to people! I'm using the filter of datatable of primefaces itself but it is not working when I use it to filter p:selectCheckboxMenu . When I select one of the options it does not find anything. I used this example and I...
asked by 13.03.2018 / 00:21
0
answers

Is it possible to redirect a parameter of a json?

Is it possible to redirect a parameter from an iframe-generated% s and redirect to a url with WebView? Example I have a webview and the site asks to put the data type and mail and password and when the user puts the data generates a code json...
asked by 11.03.2018 / 16:47