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...

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does the tag url-encode javascript and mailto links?

573


What must a class do to implement an interface?

579


What restrictions are placed on the values of each case of a switch statement?

529


How are the elements of a cardlayout organized?

590


Why are my checkboxes not being set from on to off?

630






Are enterprise beans allowed to use thread.sleep()?

639


What is the difference between the session.update() method and the session.lock() method?

549


Explain about thread synchronization inside a monitor?

1991


Explain ioc concept?

616


Can constructors be synchronized in java?

611


Difference between DurableSubscription and non- DurableSubscription?

1706


What is the difference between the ‘font’ and ‘fontmetrics’ class?

628


What is jboss?

568


Have you used threads in Servelet?

1926


Define aop(assepct oriented programing)?

626