Questions tagged as 'java'

1
answer

How to pass the schema param param in PLSQL?

I have a function that receives a value in varchar2 with the name of Schema in order to write the data in the database but in the informed schema. create or replace FUNCTION hospitalTeste123(MatriculaMedico in number, nomeSchema in varchar2 )...
asked by 16.05.2018 / 16:07
2
answers

Message when the user is exiting the application

I know I can use AlertDialog for this, but without creating a button, only when the user is pressing the back to exit does an alert appear? Type, when it comes out (this involves the Android system in the part that does it alone) would a...
asked by 24.12.2015 / 00:48
0
answers

One of the tables is not being created - JPA / Hibernate with MySQL

I have a problem running my test class: import javax.persistence.EntityManager; import br.com.teste.jpa.c_mapeamento.model.Conta; public class PopulaConta { public static void main(String[] args) { EntityManager manager = JPAUt...
asked by 30.08.2018 / 22:50
0
answers

Modify JOptionPane [duplicate]

Personally, I'm customizing my swing components, can I modify JOptionPane? so that I was very different? ex: remove the bar with title and the option to close and etc ...     
asked by 30.08.2018 / 07:18
0
answers

Java - Print on port Bematech_COM3

I need to print a non-fiscal role in Java. On the client machine a Bematech 4200 is already installed on the Bematech_COM3 port: I'm trying to print using the following method: private void imprimir(String frase) { //Gera o arquivo d...
asked by 20.04.2018 / 20:14
0
answers

Extract the contents of a JSP page to a String in a servlet or Java class

Good afternoon, I would like to check if anyone knows how to extract the contents of a JSP page to a String. Example: I have a JSP page with HTML content, I want to pass this HTML content to a String in the Java language, so I can send thi...
asked by 12.03.2018 / 19:47
1
answer

Intercept methods

I need to create a class to intercept the methods of a certain class in order to monitor the execution time, to find out where the bottleneck of my transactions is.     
asked by 19.01.2015 / 13:24
0
answers

Run Activity from another app

Is it possible to run an Activity from another app? I do not want to call it through an intent, something like this: public class AnotherActivity extends com.otherapp.app.ActivityName { // Aqui vai conter o código original da Activity }...
asked by 05.07.2018 / 15:48
1
answer

JWT token with spring, for user authentication

When trying to validate this method: Jws<Claims> parseClaimsJws = setSigningKey.parseClaimsJws(token); , it shows this exception on the screen JWT signature does not match locally computed signature. JWT validity cannot be asserte...
asked by 29.03.2018 / 00:34
1
answer

Lazy loading in PrimeFaces DataTable does not bring log data

I have a lazy load on DataTable of PrimeFaces, and on this table I upload I want to edit a record. Clicking the line will open a dialog with a form to edit that record. However, when you click the line, it opens...
asked by 19.08.2018 / 21:11