How to create  a  login screen

i need to create a login screen ,only if user enter valid
username & password it should move to next canvas.
could any one help me out

there are many ways.
if you want the users to be backend users i.e. schema users u candesign a fform with on logon triggers.
instaed you can have front end users by storing user aname and password in a table , and check for valid user name and passowrd using a form.

Similar Messages

  • How to create a login interface in labview PDA module?

    How to create a login interface in labview PDA module? So that it checks with a list of usernames and passwords and allow to go to another VI?
    Anu

    Anu,
    I've attached a really short example that does something like what you're talking about.  It just compares the user's username and password a pre-determined username and password and then "logs the user in" based on that comparison.  Like Greycat said, you probably want to store this username and password info in some sort of file on the PDA that's in an encrypted format for both security and flexibility of your application.
    I hope this helps,
    Justin D.
    Applications Engineer
    National Instruments
    Attachments:
    LoginVI.vi ‏17 KB

  • Does anyone here knows how to create a login page thru JDBC?

    Anyone here knows how to create a login page which connect to database thru JDBC but not JDBC-ODBC bridge?

    Hi..pls you'll do people here a great good if you could explain yourself better..!
    Anyway if you are trying to connect to an Oracle Database you dont need the jdbc-odbc bridge as oracle provides a special driver for java applets/applications that is "the thin driver" and the "oci driver"..so if you are connecting to Oracle your connection will look like this:
    Class.forName("oracle.jdbc.driver.OracleDriver"); //not sun.jdbc.odbc.JdbcOdbcDriver
    Connection con = DriverManager.getConnection ("blah blah, blah");
    no need for the jdbc-odbc bridge.
    I hope i've answered your question.
    Thanks.

  • How to create a splash screen?

    I was wondering how to create the splash screen that shows up when you just load the program. My program takes a bit to load, because it sets to change the look and feel to system dependent.
    So, I want to have a splash screen like the one that eclipse uses to begin the program. How would I do it?
    Thanks

    Did you search the forum using "splash screen" to find the other hundred threads that have asked this question before?

  • Creating a login screen.

    I saw another post by some-one trying to create a login screen. I used the example that someone responded with and managed to get it working.
    However I then tried to edit it to connect to a database and then got a Tomcat error saying "The value for the useBean class attribute Website.Login is invalid."
    Can anyone see anything wrong with this code?
       <html>
                 <body>
                           <form    method=post    action=do-log.jsp>
                             <input   type=text      name='text1'>
                                     <input   type=text      name='text2'>
                              <input   type=submit>
                            </form>
                     </body>
                     </html>
                     <html>
    <%@ page import="java.util.Date"%>
    <%@ page import="java.net.*"%>
    <jsp:useBean id="myForm" class="Website.Login" scope="session" />
    <jsp:setProperty name="myForm" property="*"/>
    <%
    myForm.MakeConnection();
    myForm.login();
    String name = myForm.getUser();
    System.out.println("\nusername from String: "+name);
    System.out.println("\nusername from database: "+myForm.getUser());
    System.out.println("\nresult of boolean: "+myForm.getbool());
    if(myForm.getbool() == true && myForm.getpreferences().equals("Golf"))
    %>
    <jsp:forward page = "Golf.jsp"/>
    <%
    else if(myForm.getbool() == true && myForm.getpreferences().equals("Rugby"))
    %>
    <jsp:forward page= "Rugby.jsp"/>
    <%
    else if(myForm.getbool() == true && myForm.getpreferences().equals("Soccer"))
    %>
    <jsp:forward page= "Soccer.jsp"/>
    <%
    else
    System.out.println("failure");
    %>
    <jsp:forward page = "Login.html"/>
    <%
    %>
    package Website;
    import java.io.*;
    import java.sql.*;
    import java.text.*;
    public class Login
         Connection db;     
           Statement  st;     
           private ResultSet rsetlogin;
        String user;
        String pass;
        public void setUser(String user) {
            this.user = user;
        public String getUser() {
            return this.user;
        public void setPass(String pass) {
            this.pass = pass;
        public String getPass() {
            return this.pass;
        public Login(String args[]) throws ClassNotFoundException, FileNotFoundException, IOException, SQLException
           MakeConnection();
            System.out.println("Now closing the connection");
        st.close();
        db.close();
        public void MakeConnection()throws ClassNotFoundException, FileNotFoundException, IOException, SQLException
            String url = "jdbc:postgresql:database";
        String usr = "postgres";
        String pwd = "dune";
        // Load the driver
        Class.forName("org.postgresql.Driver");
        // Connect to database
        System.out.println("Connecting to Database URL = " + url);
        db = DriverManager.getConnection(url, usr, pwd);
        System.out.println("Connected...Now creating a statement");
        st = db.createStatement();
         public void userLogin(String user, String pass) {
        this.user = user;
        this.pass = pass;
         boolean validpass = false;
    //method to log in.
        public boolean getbool(){return validpass;}
         public void login()
              String usernameIn;
              String passwordIn;
              try
                   Statement stmt = db.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
                   rsetlogin = stmt.executeQuery("SELECT Username,Cust_Password, Prefered_Sport  FROM Customer WHERE Username ='"+getUser()+"'");
                   while(rsetlogin.next())
                        usernameIn = rsetlogin.getString(1);
                        passwordIn = rsetlogin.getString(2);
                        if(usernameIn.equals(getUser()) && passwordIn.equals(getPass()))
                             validpass = true;
                             System.out.println("log in success");
                             setUser(rsetlogin.getString(1));
                             setPass(rsetlogin.getString(2))     ;
                        else if(!usernameIn.equals(getUser()) || !passwordIn.equals(getPass()))
                             System.out.println("log in failure");
                             validpass = false;
              catch (SQLException e)
                   System.out.print("Error at login");
                   e.printStackTrace();
         public static void main(String args[])
        System.out.println("PostgreSQL basic test v6.3 rev 1\n");
    }

    Ok thanks for all your help. It's abit too selfish to ask you are help again (I'm using a different screen-name as I had difficulty logging back in).
    But if anyone else has any suggestion please feel free to share. Basically the login is failing and is promting the user to the index.htm file even though I entered the right password.
       <html>
                 <body>
                           <form    method=post    action=do-log.jsp>
                             <input   type=text      name='Username'>
                                     <input   type=text      name='Cust_Password'>
                                     <input   type=text      name='PreferedSport'>
                              <input   type=submit>
                            </form>
                     </body>
                     </html>
                     <html>
    <%@ page import="java.util.Date"%>
    <%@ page import="java.net.*"%>
    <jsp:useBean id="myForm" class="Website.Login" scope="session" />
    <jsp:setProperty name="myForm" property="*"/>
    <%
    myForm.MakeConnection();
    myForm.getUsername();
    myForm.getCust_Password();
    myForm.getPrefered_Sport();
    if(myForm.getbool() == true && myForm.getPrefered_Sport().equals("swimming"))
    %>
    <jsp:forward page = "swimming.jsp"/>
    <%
    else if(myForm.getbool() == true && myForm.getPrefered_Sport().equals("Tennis"))
    %>
    <jsp:forward page= "Tennis.jsp"/>
    <%
    else if(myForm.getbool() == true && myForm.getPrefered_Sport().equals("Soccer"))
    %>
    <jsp:forward page= "Soccer.jsp"/>
    <%
    else
    System.out.println("failure");
    %>
    <jsp:forward page = "index.htm"/>
    <%
    myForm.close();
    %>
    package Website;
    import java.io.*;
    import java.sql.*;
    import java.text.*;
    public class Login
         Connection db;     
           Statement  st;     
           private ResultSet rsetlogin;
        String Username;
        String Cust_Password;
        String Prefered_Sport;
        public void setUser(String Username) {
            this.Username = Username;
        public String getUsername() {
            return this.Username;
        public void setCust_Password(String Cust_Password) {
            this.Cust_Password = Cust_Password;
        public String getCust_Password() {
            return this.Cust_Password;
        public void setPrefered_Sport(String Prefered_Sport)
             this.Prefered_Sport=Prefered_Sport;
        public String getPrefered_Sport()
             return this.Prefered_Sport;
        public Login() throws ClassNotFoundException, FileNotFoundException, IOException, SQLException
        public void MakeConnection()throws ClassNotFoundException, FileNotFoundException, IOException, SQLException
            String url = "jdbc:postgresql:database";
        String usr = "postgres";
        String pwd = "dune";
        // Load the driver
        Class.forName("org.postgresql.Driver");
        // Connect to database
        System.out.println("Connecting to Database URL = " + url);
        db = DriverManager.getConnection(url, usr, pwd);
        System.out.println("Connected...Now creating a statement");
        st = db.createStatement();
         boolean validpass = false;
    //method to log in.
        public boolean getbool(){return validpass;}
         public void login()
              String usernameIn;
              String passwordIn;
              try
                   Statement stmt = db.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
                   rsetlogin = stmt.executeQuery("SELECT Username,Cust_Password,  FROM Customer WHERE Username ='"+getUsername()+"'");
                   while(rsetlogin.next())
                        usernameIn = rsetlogin.getString(1);
                        passwordIn = rsetlogin.getString(2);
                        if(usernameIn.equals(getUsername()) && passwordIn.equals(getCust_Password()))
                             validpass = true;
                             System.out.println("log in success");
                             setUser(rsetlogin.getString(1));
                             setCust_Password(rsetlogin.getString(2))     ;
                        else if(!usernameIn.equals(getUsername()) || !passwordIn.equals(getCust_Password()))
                             System.out.println("log in failure");
                             validpass = false;
              catch (SQLException e)
                   System.out.print("Error at login");
                   e.printStackTrace();
         public void close()
             try
                  db.close();
             catch (Exception e)
                   System.out.print("error at database close");          
                   e.printStackTrace();
         public static void main(String args[])
        System.out.println("PostgreSQL basic test v6.3 rev 1\n");
    }

  • How to create multiple selection screens in reports

    How to create multiple selection screens in reports
    Thanks,
    Sridhar

    Ex: hope you will find an idea from the below example :
    SELECTION-SCREEN BEGIN OF BLOCK SEL1 WITH FRAME TITLE TIT1.
    PARAMETERS: CITYFR LIKE SPFLI-CITYFORM,
                CITYTO LIKE SPFLI-CITYFORM.
    SELECTION-SCREEN end OF BLOCK SEL1
    SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
    SELECTION-SCREEN INCLUDE BLOCKS SEL1.
    SELECTION-SCREEN BEGIN OF BLOCK SEL2 WITH FRAME TITLE TIT2 .
    PARAMETERS: AIRPFFR LIKE SPFLI-AIRPFROM,
                AIRPTO LIKE SPFLI-AIRPTO.
    SELECTION-SCREEN END OF BLOCK SEL2
    SELECTION-SCREEN END OF SCREEN 5000.
    INITIALIZATION.
    TIT1 = 'ITIES'.
    aT SELECTION-SCREEN.
    CASE SY-DYNNR.
    WHEN '0500'.
       MESSAGE W159(at) WITH 'SCREEN 500'.
    WHEN '1000'.
       MESSAGE W159(at) WITH 'SCREEN 1000'.
    ENDCASE.
    START-OF-SELECTION.
    TIT1 = 'CITIES FOR AIRPORTS'.
    TIT2 = 'AIRPORTS'.
    CALL SELECTION-SCREEN 500 STARTING AT 10 10.
    TIT1 = 'CITIES AGAIN'.
    CALL SELECTION-SCREEN 1000 STARTING AT 10 10.

  • Tutorial for creating a login screen

    Is there a good tutorial out there on the best way to create a login screen in Flex that connects to a back-end database to check the username and password?

    That's the one ColdFusion, check this great old tutorial but still works pretty good
    http://www.brucephillips.name/blog/index.cfm/2006/11/27/Login-and-Logout-Flex-Example-That -Uses-ColdFusion-CFLogin-and-CFC-Role-Security
    I guess you are some sort of gure making queries from CF to your DB, so this will be a piece of cake for you.
    Hope this helps.

  • Create a Login Screen in NWDS

    Hai All,
    I am trying to create a one login screen. So, any body plz guide me which type of BAPIS are required . The following are the fields for log in screen.
    User Name;
    Password:
    Submitt
    Once user submitt the  fields he received conformation message through mail.
    Note: Points will be revert back.
    Thanks,
    Sumanth

    Hi Sumanth,
                     to create a login screen , you need not a BAPI, instead you can
    create two views in a single application  in which the first view contains ui elements  like username , password and a button like submit. The thing is that
    when you creating the button itself , you specify the target view i.e second view.
    In the second view you can write the response like "this is second view" as
    default text view.
    Navigation: 1)openperspective as webdynpro-FILE-NEW -OPEN WEBDYNPRO PROJECT-specify proj name and package.
    2)expand project-expand webdynpro components-create component(once the
    component is created one window and one default view will be created).
    3)double click on default view  - go to context - right click on context -new value
    attribute-specify attibute name as username and one more value attribute as
    password.
    4)go to view controller part of digram part - right click on view controller -select
    apply template - select action button - specify name as Submit(here you need to select 2nd view ).
    5)in the view controller part only you may get symbols for creating inbound plug and out bound plug , embed a view. select embed view as second view .
    Then create outbound plug in view 1 and inboundplug view 2 and create a navigation link b/w them.
    save all  metadata.
    6)go to applications under project-right click on it - create application as app1
    and package as xxx.
    7)expand applications -right click on our application i.e app1- select deploy and run
    archive file.
              wait for the response (if everything is goes fine it will displays login page
    with emty fields)
              If you have any dought send me reply.
    bye take care.
    Regards,
    Sanjeev.kunta

  • How to create a login portlet?

    anyone can tell me how to create a login portlet?
    I'm created a JSR286 portlet use "weblogic.security.services.Authentication",that can login only in the portlet application.The portal can't Authentication.

    Hi.
    Portlets are consumed via WSRP 2.0 (Remotelly).
    I recommend you create an ADF Task Flow for your login process of your Portal instead of a Portlet.
    Regards.

  • How to create a login module

    Hi Everyone.
    How to create a login module which like www.sdn.sap.com
    the module is on the top left corner

    http://help.sap.com/saphelp_nwce10/helpdata/en/46/3ce9402f3f8031e10000000a1550b0/frameset.htm

  • How to create a LOGIN Form & LOGIN ID & PASSWORD for END USERS

    hi,
    i have just created a Database and Forms & Reports using developer 6i.
    now i want to deleiver that Database to end users, but i dont know that how to create a LOGIN Form for the end users and also i want to assign each user a Login ID & Password.
    Plz help me to solve out this problem.

    1. Create the user accounts on the database CREATE USER ... IDENTIFIED BY...
    2. Grant CONNECT Role to the Users
    3. in the main form (the one which is being called initially at runtime) in the ON-LOGON-Trigger create a CALL_FORM() to the Login Form
    4. The Login Form will be called; build a Block with username, password and a Button
    5. In the Button call the LOGON Built-In
    6. Control will be passed to the initially called form again
    I also noticed a thread in here explaining this in more detail...
    Message was edited by:
    user434854

  • How to create a login to users in PHP

    How to create a login for users to access their data,
    currently I can only see the first user everytime I login even with
    a different username. I know I need session stuff but don't know
    how to use, add or where to put them in.
    Thanks in advanced.

    I also am wrestling with the same problem. Session variables
    have not worked. I have determined that if the GET method is used,
    then the recordset of the users records are there. If the POST
    method is used, the recordset is blank. It appears to be something
    inherent in the Log In User behavior.
    I am trying to have a customer log in and then only see their
    particular inventory records. I do not want them be directed to a
    page with a listing of all the various customers and then select
    from that. Not suitable at all.
    If I find an answer, will let you know.
    Thanks and good luck,
    Dale :-)

  • How to create a Login/Password page?

    Anyone know how to create a page where I can say - create a hyperlink on a text file and by clicking on that text file it takes them to a new page with a login screen? (from there I would create a page that once logged in takes to another page). just interested in the login page as default. I know i can password protect, create new site, etc. thats not what im looking to do....thanks.

    Drop.io is an easy to use, online file sharing service that provides users with a simple and private way to share images, video, audio, documents and other digital content through unique, user-created and controlled sharing points called 'drops' which are are protected from search engines...
    http://drop.io/about
    ...And there's a how-to video here:
    http://drop.io/howto

  • How to create a login session in flex?

    Hi there,
    I have a flex application with two states. One is a "login" state which is a screen with username and password. The other state is "loggedIn" state which is a screen with a small application. As soon as the user credentials are checked from the back end, based on it's success, I'm changing the state to "loggedIn", else there is a message to the user about login failure in "login" state itself.
    My problem is if I'm in "loggedIn" state and if I hit refresh button of the webpage(F5), it goes back to the login screen i.e., it just restarts the application..
    How can I control this? Is there something like login session which can do the trick?
    Appreciate your help...
    -Deepak

    Flex code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="getSession.send()">
        <mx:Script>
            <![CDATA[
                import mx.rpc.events.ResultEvent;
                public function getSessionStuff(evt:ResultEvent):void
                    saveInfo.text = evt.result.info;
            ]]>
        </mx:Script>
        <mx:HTTPService id="startSession" showBusyCursor="true" method="POST" url="http://localhost/startSession.php">
            <mx:request xmlns="">
                <stuffToSave>
                    {saveInfo.text}   
                </stuffToSave>
            </mx:request>
        </mx:HTTPService>
        <mx:HTTPService id="getSession" result="getSessionStuff(event)" showBusyCursor="true" method="POST" url="http://localhost/getSession.php"/>
        <mx:Button x="602" y="323" label="Start Session" enabled="{saveInfo.text != ''}" click="startSession.send()"/>
        <mx:TextInput id="saveInfo" x="563" y="293"/>
    </mx:Application>
    setSession.php code;
    <?php
        session_start();
        $_SESSION['loggedIn'] = $_POST["stuffToSave"];
    ?>
    getSession.php code;
    <?php
        session_start();
        if($_SESSION['loggedIn'])
            echo "<info>".$_SESSION['loggedIn']."</info>";
        else
            echo "<info>nothing has been saved</info>";
    ?>
    ta daa

  • How to enforce a login screen when running a Web Dynpro app?

    Hello,
    In Web Dynpro for Java there is a way to set authentication property to true and by that enforcing a login screen in case someone is browsing this application outside of an authenticated context (for example, the portal).
    My question is: How do I do this for Web Dynpro for ABAP?

    Roy, are you familiar with that http://help.sap.com/saphelp_nw04s/helpdata/en/ff/c7de3fc6c6ec06e10000000a1550b0/frameset.htm ?

Maybe you are looking for

  • How do I open a Classic file? running OSX on MacBook Pro

    I've got a tax file that was made using Quicken 2003 and when I try and open it up the message is "You can't open the application QuickTax Deluxe 2001 because the Classic environment is no longer supported. There isn't any extension on the file. Is t

  • Carry forward receivable/payable

    Dear Expert, We are going to run F.07 to carry forward receivalbe and payable. Before execute this transaction, we check the customer and vendor balance via FD10N and FK10N, it is strange that many open items has been carried. not only those items po

  • Itunes and quicktime icons gone after update

    hi my friend and i both just recently updated our itunes to the latest and greatest version. now niether of us have icons for either prog. the are like a blank icon, just not the correct icon. sometimes when i click on the programs the icon appears b

  • Weird behavior: Throws an error while debugging/Run mode, but doesn't when project is built

    Hi there, I am trying to see if I could get some help on a strange situation: I am developing a desktop application with few window components (like music window, rss feeds, photos window, etc). I am trying to have a checkbox in the "preferences" com

  • AD CS 2012 R2 Disaster Recovery

    Hi. I have a scenario where we're looking to deploy a standalone root CA with Enterprise Sub CA. We will also be using cross forest certification. However, we're looking at deploying a second Sub CA at the DR site. My question is how do we provide a