Hi frnds ,iam new to java and j2ee ,my requirement is using
java or any j2eetech how to lock an user when he enter wrong
credentials(uname&password) more than 3 times.take the
username and passowrd in a bean no need to conned Db kindly
provide me sample application code or and ideas or links or
tutorials plzzzzz urgent for me thanks in advance...

Answers were Sorted based on User's Feedback



Hi frnds ,iam new to java and j2ee ,my requirement is using java or any j2eetech how to lock an use..

Answer / juser

If it is window based application then you can use static
varibale. I mean static counter varibale and every time
when user tries to enter user name and password then check
if it wrong increase counter.and if this counter variable
is more than 3 then block this user by updating DB.

Is This Answer Correct ?    8 Yes 5 No

Hi frnds ,iam new to java and j2ee ,my requirement is using java or any j2eetech how to lock an use..

Answer / hero

Please Stop Learning About JAVA Its Better For Your Life....
Worst Doubt...

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

What restrictions are placed on the location of a package statement within a source code file?

0 Answers  


Can I map more than one table in a cmp?

0 Answers  


1) Scenario: I developed my application on local system and everything is perfect and tested. Now on UAT this application is deployed on clustered server environment. They are logical or physically clustered. But application is not working over there.  What is the issue with application?  What are the first things which come in your mind?

1 Answers   L&T,


How can I avoid validating a form before data is entered?

0 Answers  


what are JSP tags? what is difference between include action and directory?

0 Answers   ADP,






what is diff between Access modifier and specifier?

5 Answers   L&T,


a US company has filed my H1B visa ,, and i got selected in random number process.I wanna ask Could they ask regarding my languages(java,c++) or there will b just general questions?? And wat kind of questions will they ask in embassy interview??

2 Answers  


What are the call back methods in entity bean?

0 Answers  


What is the map interface?

0 Answers  


Name the method to find, if a thread is active or not?

2 Answers  


suppose i open my yahoo mail.then copy the url. then sign out & close browser.then open browser paste that url on the browser.will i get my mail opened or not? i know it ill not.but how it work.how i create like this type of secure site?

7 Answers  


Which are the different segments of memory?

0 Answers  


Categories