Questions tagged as 'java'

3
answers

Assign value to the variable in the method declaration

Is it possible to assign the default value of a variable within the method declaration, the same as in PHP ? If so, how? Ex: I want the test function, when called, if no parameter is passed, has the value of b false and true...
asked by 19.10.2016 / 15:45
1
answer

Validate date smaller than current date [closed]

My question is as follows. I have a JSP form for registering students with multiple attributes, one of them is the date of birth. Until then I was registering the date only by validating the format (dd / MM / yyyy) and with annotations. But now,...
asked by 17.11.2016 / 14:56
0
answers

Jbutton by pressing a key

Is it possible to "simulate" the pressing of a key on a keyboard by the click of a Jbutton inside another program? I want to do this because I'm messing with older versions of AMCap.     
asked by 18.11.2016 / 14:15
0
answers

I am in doubt about doing the part of lease and return [closed]

For this, you should create classes: ➢ Item (available (boolean), date of loan, date of return, name and code). Use the Calendar class to manage dates. ➢ Book (author and loan period - 14 days and should be static attribute) ➢ CD (number of...
asked by 17.11.2016 / 19:00
0
answers

Error in Hadoop when searching for Java class

I'm having trouble configuring the Hadoop environment. I'm doing a zero installation on a CentOS 6.7 machine. When attempting to execute any hadoop command, such as: hdfs namenode -format hadoop claspath hadoop version I get the error me...
asked by 07.10.2016 / 20:48
0
answers

How to retrieve / get the value of the "unicodePwd" attribute in Active Directory through a java application

I've read several articles here on StackOverflow on how to get the value of the "unicodePwd" attribute in AD (Active Directory), but none of these articles helped me in this situation. Well, why do I need this information? I'll explain: I...
asked by 05.10.2016 / 17:04
0
answers

Dynamic menu with JSF and Primefaces, when it gets responsive it does not work

I have a dynamic menu on my site, which is brought through categories previously registered in the database. Within each category, you have a list of subcategories. When I click on a subcategory, it would have to bring me the related stores t...
asked by 05.10.2016 / 15:59
1
answer

Problems getting accented files in Tomcat 8!

I have the same application in tomcat 7 and tomcat 8 , only in tomcat 8 of a problem, src of an image but in the files of the images that has accentuation of a not found error, it follows images: filename: FAVORITOS-MENU - SEM...
asked by 24.11.2016 / 17:24
1
answer

How do I search for the ID's in the bank and display the names on the screen?

In my JSF + Primefaces project, I have the following entities: @Entity @Table(name = "geracao") public class Geracao { @Getter @Setter @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Getter...
asked by 23.11.2016 / 16:51
0
answers

java.lang.IllegalStateException: Can not create a session after the response has been committed [closed]

Good morning guys, I have a strange problem in my application only after I generate War and send to Integrator, the application does not even open the Login screen, this error is returned: INFO: Exception when handling error trying to reset...
asked by 03.10.2016 / 19:23