Questions tagged as 'java'

1
answer

ActiveJdbc Validation Compound

I need to do a composite validation in ORJ ActiveJdbc and I'm not finding anything in the documentation. Something of the type, extends from the ValidatorAdapter class, but I'm not finding material to use as an example. Basically: public cl...
asked by 26.05.2016 / 03:48
1
answer

How to get values from two html selects in javascript?

Basically I have the following code: var associar = $("#associar"); var desassociar = $("#desassociar"); var permissoes = $("#permissoes"); var minhasPermissoes = $("#minhasPermissoes"); var gravar = $("#gravar"); associar.click(f...
asked by 24.02.2016 / 21:38
1
answer

Convert string to calendar [closed]

I need to do a String to calendar conversion, so I have to set the value in a variable (which is in calendar type) in a class and then insert the data into a database! System.out.println("Digite a Data de Aniversario do Funcionario"); String...
asked by 06.03.2016 / 00:07
2
answers

Error sending email using JavaMail

Could someone help me fix this error? I can not send the email to the inbox. Follow the code below: @Service public class EnvioEmailServicoImpl implements EnvioEmailServico { @Override public void enviarEmail(String id){ S...
asked by 08.03.2016 / 16:05
1
answer

Open JFileChooser with "Filename" field filled in

How can I open JFileChooser with the Filename field filled in? This image field below: How do I set a name to default to this field?     
asked by 14.03.2016 / 13:03
1
answer

How to save a html page in java

I have a project which I need to report for each code. And save it to disk in PDF format. After generating the report, I do not know how to pass the (generated) page to the Servlet and save it to PDF. I was able to send the html to the servle...
asked by 15.01.2016 / 16:42
1
answer

What's the difference between Sessions Beans and Message DriveBeans?

There are two components responsible for business logic in the EJB architecture, the Session Beans and Message DriveBeans. I would like to know the difference of both and some example of its use.     
asked by 04.12.2015 / 14:27
1
answer

Return Connection as Boolean?

Would it be possible to modify the class so that it returns the result of the connection as a boolean to jFrame? public class ConectarDB { private static Connection con = null; public static Connection getConexao() { // Driv...
asked by 04.12.2015 / 20:34
1
answer

Delete entity and all its Hibernate relationships

I have the entity Fatura that has a OneToMany relationship with the entity Item . When I try to delete an Invoice I get the following error:    Caused by:   com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationExc...
asked by 29.01.2016 / 13:34
2
answers

Problem when running project - Special characters

Good afternoon, I migrated my project to Intellij IDEA and when I run a code that should print a string with accentuation, I have the return: "method". The classes display the accent correctly more when calling on the console they bugam. I've at...
asked by 28.07.2016 / 21:35