Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JDBC Authentication

Have Programming Question? Ask it here!
 
 
 


micheal
Authentication
0 Answer(s)      3 years and 3 months ago
Posted in : JDBC


The developer has to create a JavaBean for authenticating an employee. The
developer creates an event class with name LoginEvent and an interface with name
LoginListener. The LoginListner interface contains a method ValidateLogin().
The developer writes the following code snippet to handle the event:

public class LoginBean
{
public LoginBean()
{
/*user interface for login */
}
public void addLoginListener(LoginListener login)
{
this.login = login;
}
public void fireLoginEvent(LoginEvent loginE)
{
login.validateLogin(loginE);
}
public void actionPerformed()
{
if (ae.getSource()==ok)
{
/*retrieving information from the user interface
and passing as parameter in fireLoginEvent method*/
fireLoginEvent(loginE);
}
}
}
However the preceding code snippet gives an error. Identify the reason for the error
and give the correct code for it.

Advertisement
View Answers

Related Tutorials/Questions & Answers:
Authentication - JavaMail
Authentication program in Java  How to write a program in Java for user authentication
Authentication in Servlets
Authentication in Servlets  What are different Authentication options available in Servlets
Advertisements
Login authentication
Login authentication  i want d code for login authentication from mysql database on the same pc using swings
Login authentication
Login authentication  i want d code for login authentication from mysql database on the same pc using swings
Authentication - Struts
Authentication  Hello everybody, How to provide high level authentication in struts application
gmail authentication
browser window it asks for authentication how it is possible if anybody knows plz tell... request Authentication done using Session If you signout and paste URL It Ask
iphone nsurlrequest authentication
iphone nsurlrequest authentication   How to authenticate a form in iPhone Application
windows authentication with hibernate - Hibernate
windows authentication with hibernate  Does anyone know how to setup a datasource for SQL Server that uses Windows authentication instead of SQL Server mixed mood authentication? Is it possible with hibernate framwork? Thanks
SSL Authentication - JSP-Servlet
SSL Authentication  With the help of a sample code describe the use of SSL Authentication of java clients
login authentication - Java Beginners
login authentication  i 've designed the jsp page for login. now i need to connect it with the bean and do authentication for the login for the "register" table in mysql. can anybody help me with the code immediately
Sending email without authentication
Sending email without authentication  Hi sir, Am doing a project in JSP, in that i want to send mail without any authentication of password so send me code as soon as possible.   Please visit the following links
Struts Login Authentication
Struts Login Authentication  Hi Sir, Am doing a project in a struts 1.2,i want login authentication code fro that, only authenticated user can login into application,i am using back end as Mysql.so send me code as soon
Basic authentication
Basic authentication       Basic authentication is the process through which a web server authenticates... the client's built in authentication mechanism. In java programming language
http Client Authentication
authentication problem. can any one please help me to solve this problem. please... org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: basic authentication scheme selected Jan 10
Authentication of password - Swing AWT
Authentication of password  System level authentication of password.... How the Printed password gets converted into the asteric (*) mark?????  check out the below link  check out this link http
user authentication code in php - PHP
user authentication code in php  Hi, Can you please send me a user authentication code in php? or just post the guidelines to authenticate a user. Thanks
JDbc Login Authentication
JDbc Login Authentication  Pease Please.. Send Me one Login Authentication Using ComboBox.From Servlet and jsp with sessions I am new to sessions Please Help Me... Index.jsp <form action="Clas.java" Method="post">
in php What the code is to be written for Authentication with Session Control
in php What the code is to be written for Authentication with Session Control  in php What the code is to be written for Authentication with Session Control
Specifying an Authentication Mechanism in the Deployment Descriptor
In this section, you will learn how to specify an authentication mechanism in the deployment descriptor
Login authentication & mysql - Java Beginners
Login authentication & mysql  Hi , Could you guide or provide sample coding for the following scenerio. I need to code authentication for user... Authentication with MySql using Java Swing: 1)Create a java class
Login Authentication using existing Active Directory.
Login Authentication using existing Active Directory.  I need jsp code for login authentication of username and password using already existing Active Directory. Here no need to create active directory.The JSP code should
Java Glossary : Authentication
Java Glossary : Authentication       Authentication is the process of ensuring to some in order... key.  A web authentication where a web page includes a dialog box having
Login Authentication and session in JSP - JSP-Servlet
Login Authentication and session in JSP  Hi, I am creating an small application in JSP,in which i need to check user authentication and session on each JSP page.Also how do i make logout page. Can you help me
jsp page authentication panel using jsp/servlet?
jsp page authentication panel using jsp/servlet?  I have 10 jsp jsp forms and 7 users and i want to grant variour permission like edit,delete and save for users dynamically on forms.So please refer me code
send without authentication mail using java - JavaMail
send without authentication mail using java  Dear All, I am tring to send simple mail without authentication using java. is it possible, could i send email without authentication. I have written following code. public
Spring Security HTTP basic authentication
Spring Security HTTP basic authentication In this section, you will learn about the HTTP basic authentication in Spring Security. You can configure HTTP basic authentication in spring-security.xml as follows : <!--Spring
Specifying Security for Basic Authentication using @ServletSecurity
In this section, you will learn about how to specifying security for basic authentication using @ServletSecurity
how to make authentication for each user using jsp/servlet?
how to make authentication for each user using jsp/servlet?  i have 10 jsp pages and 5 users.I use 10 buttons for open the page.Admin assign some jsp pages to each user.If admin assign page1 and page2 for user1 then make other
After authentication and connection establishment, Upload a zipfile by chunks in java
After authentication and connection establishment, Upload a zipfile by chunks.... After authentication, I made use of those cookies to upload the file [My authentication part is done] but Am trying to establish the new connection on every
After authentication and connection establishmenr, Upload a zipfile by chunks in java
After authentication and connection establishmenr, Upload a zipfile by chunks... java. After authentication, I made use of those cookies to upload the file [My authentication part is done] but Am trying to establish the new connection on every
After authentication and connection establishmenr, Upload a zipfile by chunks in java
After authentication and connection establishmenr, Upload a zipfile by chunks... java. After authentication, I made use of those cookies to upload the file [My authentication part is done] but Am trying to establish the new connection on every
login and registration form using servlet and authentication through mysql
login and registration form using servlet and authentication through mysql  i made a simple login and rgistration form using servlet and authentication through mysql and whenevr i run it on tomcat a blank page is displayed plz
Login Authentication using Bean and Servlet In JSP
Login Authentication using Bean and Servlet In JSP... developed a web application of login authentication using Bean  in JSP. Five...;/body> <html> Output: Login Authentication form : After
redirecting a login authenticated form to a form to be displayed on the same page from where the login authentication has taken place.
redirecting a login authenticated form to a form to be displayed on the same page from where the login authentication has taken place.  I am successfully able to create a session on successful login, but I want to display
HTTP Authentication With PHP
HTTP Authentication with PHP: The HTTP Authentication is available when... to send a message (for authentication) to the client side (browser... for authentication. $_SERVER and $HTTP_SERVER_VARS contains these predefined
Authentication in Web Application
Authentication in Web Application          Example for Authenticating user... and JSP page. You can use any browser to test the application Authentication
FreeNAS 0.65 has been released
FreeNAS 0.65 has been released MS Windows Domain authentication; Apple File Protocol (AFP); Announce FreeNAS services with Zeroconf (howl); iSCSI initator... user authentication, Software RAID (0,1,5) with a Full WEB configuration
Mobile Tracking System
A mobile tracking system is a web-based solution that uses state-of-art technology and authentication methods to attain the position of stationary or moving mobile phone. Mobile tracking is done with the help of the GPS technology
Advertisements
 

 

 

DMCA.com