Login screen to mySQL

Hi there,
I'm trying to write a small Gui screen that will require a user to log in to a mySQL data base, now I've got it to log in easily enough. That's all fine.
I should say at this point that I'm not using the user table at all.
I was just wondering how I could handle the event, so that if the loggin in was succesful, then a new window would open up, if not, then a pop-up message would appear asking the user to try again.
I'm still trying to get to grips with all this, so please be patient with me :)
Many thanks
emyr

Hi, thanks for the reply.
It's a desktop based Swing application.A server class would still make your app more scalable.
At the moment, I'm writing an administration program
for a course manager system, where the operator will
need to be able to add new students and courses to
the data base. Every book I've read thus far has
placed the whole code into the main. That's a very procedural way of doing things. Java's an object-oriented language. You should be thinking about objects.
For a course management system, what would be pertinent?
Course
Student
Catalog - Collection of Courses
Schedule - Collection of Courses for a given Student
Department
Instructor
Administrator - person who maintains the Catalog
Person - superclass for Instructor and Student and Administrator
Start designing these. What kinds of attributes and methods would be useful for each?
What kinds of things can Administrators do? Instructors? Students?
And I must
confess that I struggle somewhat with how they do it,
and I find that I don't learn much from that
approach.Indeed, I think it's a bad approach.
>
Are there any good web sites with tutorials on
implementing client/server software in java? It's
something I'd be very interested in learning.Lots of sites, but I'm not sure what to recommend. Google and use trial and error.
p.s I also think my using mySQL may complicate things
a little, I can't get me head round how I could use
the mySQL database if I couldn't log in to it to use
the data that is there.You can log in. It'll be that server piece in the middle that does it, not individual users.
Forget the database for now. Think about objects; worry about persistence after you have them sorted out. You can start with flat files or XML if relational databases are too hard right now.
%

Similar Messages

  • Login screen in struts and mysql database

    This coding is used for only jsp page like login screen. Now i want to use this coding in struts and mysql. will u please help how can i use this coding in struts. please help me
    Index.jsp
    Admin : <input type="text" name="admin_name" size="22" value="">
    Password : <input type="password" name="admin_password" size="22">
    <input value="Login" name="login" type="submit" value="Login">
    <input value="Cancel" name="login" type="submit" value="Cancel">
    admincheck.jsp
    try
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    conn = DriverManager.getConnection
    ("Jdbc:mysql://localhost:3306/domaininform","root","");
    String admnName = request.getParameter("admin_name") ; // Get
    the User Name
    String admnPwd = request.getParameter("admin_password") ;
    statement = conn.createStatement();
    String Query = ("select * from admin " ) ;
    rs = statement.executeQuery(Query);
    while(rs.next())
    admn = rs.getString(1);
    pwd = rs.getString(2);
    if( (admnName.equals(admn)) && (admnPwd.equals(pwd)))
    { %>
    <jsp:forward page="selectTable.jsp?butType=normal"/>
    <% } %>
    <% if( (admnName != admn) && (admnPwd !=pwd ))
    {   %>
    <jsp:forward page="index.jsp">
    <jsp:param name="errMsg"
    value="Sorry Your UserName and Password is Mismatch" />
    </jsp:forward>
    <% } %>

    i know struts. but i don't know exactly send the
    textbox values in form page, action page and
    database. if u give coding like this i can easily
    manage. please help me.Read up on form beans, action classes and how they are associated in struts configuration files. You database level code (usually DAOs) can be called from action classes unless your architecture chooses to have some other layers.
    x

  • Looping login screen in Crystal Reports for Visual Studio 2008

    Hello,
    I am using Visual Studio 2008 with the Crystal Reports Basic for Visual Studio 2008. Visual Studio and the Crystal Reports Basic Runtime for Visual Studio 2008 (x64) are installed on both the development and production boxes.  I am using Crystal Reports via Visual Studio and do not have the full blown version of Crystal Reports installed on my machine.
    We have used Visual Studio to create an aspx webpage and would like to use Crystal Reports to display a graph. The report displays fine in debug mode, but displays a looping login screen when moved into production on the web server. The web server is using Windows Server 2008 (x64) with IIS 7. We have tried passing the logon parameters to the crystal report during the page init event with the auto-bind feature enabled on the crystal report viewer. A MySQL database provides the data for the report. All ODBC data sources have been configured the same on both machines. 
    Any help would be greatly appreciated!  Thanks!

    Hello,
    Use a tool called ProcessMonitor from Microsoft and watch what happens when you try to log on.
    Also can you verify you created your DSN using the 64 bit ODBC Admin and that you are using a System DSN so IIS can find it.
    And that the MySQL ODBC drive is also 64 bit?
    If you can read ODBC trace logs you could enable it also and see what error you are getting.
    Thank you
    Don

  • When I boot up it hangs on the login screen for awhile, why?

    I have a mid 2011 Macbook Air 13".  It came with Lion but I recently updated to Mountain Lion.  When I wake the laptop from sleep everything is fine.  If it's been awhile since it slept (a couple of hours), the login screen hangs.  What happens is that it boots like normal and looks like everything is correct, but it won't let me type in my password.  After 10 seconds or so I can see a cursor come up but it won't let me type (but anything I do type at this point will later fill in the field after another 2-3 seconds or so).  One other thing that's weird is that when the screen first comes up it shows the battery percentage from when I put it back on the charger, then after everything catches up, it changes to show 100%.
    I hope I explained the problem well enough.  Basicly a "wake from sleep" is fine if it hasn't been long since the laptop slept, but if it's been awhile it takes about 15-20 seconds to boot up.
    Ideas?

    Here are some suggestions based on my recent issue with unable to get Mavericks up after upgrade - The Apple geniuses just simply couldnt figure this one out...despite it being in their shop for 3 days (They probably did not look at it...and asked if they can just wipe out everything and install fresh...i had said NO):
    Restart computer and hold Cmd+V when you hear chime. This will start the computer in Verbose mode.
    See the messages and see where the system boot fails. In my case, it was some backtrace IOStorageFamily issue with com.paragon-software.
    Google may be able to solve your Apple issues - just type the error message in and see if you get any useful suggestions. in most cases - this would be some faulty 3rd party drivers.....
    In my case, it was something stupid i had probably installed....I had to boot to safe mode (Hold Shift at boot chime) - open Terminal, delete the folder com.paragon-software.kext from System/Library/Extensions....that fixed the problem. Mavericks is working great now....
    Let me know if your debugging thing works...

  • How can I get an Active Direcotry account to show at login screen

    I've just Binded a computer to our Active Directory network, and when I log off, I only see the local account listed at the login screen, and it takes 5-10 seconds before the arrow comes up that lets me choose Other.
    I  want to be able to list the Active Directory account that the user should login with, is there a way to make it stick at the login screen?

    You can add extra empty toolbars if you want to see more of the persona.
    You can create extra toolbars to get extra space via "View > Toolbars > Customize" or "Firefox > Options > Toolbar Layout"
    You have to put something on a toolbar (drag a Space item onto it) before closing the Customize window because empty toolbars are automatically removed.

  • How to pop up a login screen when using menu?

    I have created a Menu. Now I want to create a login form, means login form will be the first form where there will be a button of log in. As soon as an user click that button a login screen should be popped up. Then user will enter the login id and password and then he is connected. Now he/she can access to other forms in the menu. Could you please tell me how to do that?

    You can start a form without login in by putting "null;" in the on-logon trigger and the put logon in the menu that you want the user to select to login.
    Search this forum for the login code. It has some finer points when it comes to exception handling that are not obvious.

  • How to enable login screen which doesn't require a password

    I'm setting up an image for a computer lab. The computers that are currently in this lab auto login. However, in the off case that a student accidentally (or maybe purposefully) locks the computer, we want them to be able to simply click the user account
    picture and it logs in without asking for a password. The current Windows 7 PCs in this lab work that way, but whoever set them up can't remember how this was accomplished and I can't figure out for the life of me how to get it done. Currently, if I lock the
    PC, it just brings me to the login screen with a blank username & blank password field.
    These machines are not on the domain. Does anyone have any idea how to get this behavior out of the login screen?

    BYPASS LOGIN
    Open a Run window (Windows Logo key+R), type netplwiz and press Enter. Remove the tick from “Users must enter a user name and password” > OK. You may have to type the user account name/password just the once to complete the process.
    BYPASS ENTERING A PASSWORD AFTER WAKEUP
    To bypass entering a password after hibernation, go to Control Panel > All Control Panel Items > Power Options > Require a password on wakeup (in the left pane) and put a check mark in Don’t require a password.
    Ninety-nine per cent of politicians give the rest a bad name.

  • Can we have two login screens for a particular application?

    I have an application which is sso enabled.
    Can i have another login screen, which doesnt authenticate SSO?

    I a nutshell, Yes you can have multiple login pages for one application. All you will need to do is specify which one you want to go to when you create the link to the application.
    E.g If you have an application number of 54321 and within this application you have 2 login pages number 101 and 111. You will need to use the following urls to access each one:
    http://server_name:port/pls/htmldb/f?p=54321:101
    http://server_name:port/pls/htmldb/f?p=54321:111
    I do not know about how SSO works with ApEx as I have never used it. But you can definitly have 2 separate login pages.
    Hope this helps,
    Cj

  • Help! bootcamped window pro 7 ok BUT driver / setup flash drive seemed to correctly install drivers, nvidia etc etc BUT on windows login screen i have no mouse or keyboard , have plugged in logitech usb mouse and keyboard still no good please help

    Please can somebody help me with this.
    i cannot get any mouse or keyboard input on my login screen after bootcamping windows 7 pro.
    i used a correctly formatted drive for the driver downloads, they seemed to install but now i have no input method to login to wondows7.
    all is fine in osx apple wireless mouse keyboard magicpad ok
    windows cant login due to no input devices.
    have connected logitech mouse keyboard still nothing.
    please help!
    thanks in advance

    1. I have tried copying the Keyboard/Trackpad/Mouse drivers to the $WinPEDriver$ directory with mixed success on a 2012 MBP.
    2. My experience is based on a 2013 rMBP. You may be able to use an Apple USB Keypad/Mouse to better success.
    3. See http://www.macworld.com/article/2460820/macbook-pro-mid-2014-review-minor-update -offers-slightly-better-cpu-performance.html for HW differences between the two machines.
    4. If you have access to a 2013 rMBP, I can suggest trying to build the USB on that and working with the USB to see if you can make it install Windows. the rMBP 2014 and rMBP 2013 have the same HW, except some CPU changes. You can also try building the USB at the nearest Apple store, if possible.
    5. There is a section in AutoUnattend.xml, which is supposed to install all drivers in $WinPEDriver$ (see this http://support.microsoft.com/kb/2686316 )
    <component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DriverPaths>
                    <PathAndCredentials wcm:keyValue="1" wcm:action="add">
                        <Path>$WinPEDriver$</Path>
                    </PathAndCredentials>
                </DriverPaths>
            </component>

  • Macbook air with 10.10.1 keyboard and touchpad stop responding after login screen

    Keyboard and touchpad works only at login screen.
    I have tried all the PRAM and SMC. reset stuff.
    Safe mode, repair etc. Creating another account is not helped either.
    I am also using 10.10.1 with macbook air.
    I have also called the apple tech support and no results!
    And this is obviously a software bug from so called robust yosemite!
    Same here!
    Macbook air built-in keyboard/trackpad only work at login screen

      You may have to take the computer to the Apple store to have it checked out.
    Genius Bar reservation
    http://www.apple.com/retail/geniusbar/
    Best.

  • My Mac starts up fine in safe mode, but freezes before the login screen in normal mode.

    I have the 2012 MBP, 4 GB of RAM, 500GB HD, 2.5GHz Intel i5 processor.  Everything worked fine, until one day it freezes all of a sudden.  I shut down and restarted.  The Apple logo appears with the loading animation underneath.  A few moments later, the animation disappears, and the mouse cursor appears.  This is normal.  What's not normal is that it stays on this screen forever.  I can't get to the login screen even after waiting sooo long.  Even restarting 5 times only repeats this problem.  I finally boot into safe mode.  I am able to login and get to the desktop in safe mode, but not normal mode.  Clearing every startup item in System Prefs, and in the startupitems folders does not solve the problem.  Disk utility says no problems.  Resetting PRAM does nothing.  Can anyone please tell me what I should do next?

    Do you hear the startup chimes?
    If so, then the startup disk may need repairing ...
    Launch Disk Utility located in HD > Applications > Utillities
    Select the startup disk on the left then select the First Aid tab.
    Click:  Verify Disk  (not Verify Disk Permissions)
    If DU reports errors, restart your Mac while holding down the Command + R keys. From there you should be able to access the built in utilities in OS X Recovery to repair the startup disk.
    Make sure to back up all important files first before using OS X Recovery.
    OS X Recovery does require a broadband high speed internet connection.

  • Macbook air built-in keyboard/trackpad only work at login screen

    The built-in keyboard and trackpad have become unresponsive on my 2013 refurbished macbook air. When I restart it, everything works normally at the login screen, but becomes unresponsive again once I've logged in. The computer works fine with external inputs or a shared screen.
    I've recently updated to yosemite. The fact that everything works up until login makes me think this is a software problem. I've tried all the troubleshooting steps listed here, and I've reset PRAM and SMC. Does anyone know what could be causing this?

    Hi,
    I was able to get result from apple store after 24 days not hours days. They said it's my fault and they have found liquid inside of it and when i asked to see pictures of it they asked for COURT ORDER and repair will be cost around 400$.
    I am %100 sure that my macbook air never touched with liquids.
    I was using it for business and not even fluids there isn't any one scratch on it. I have been very careful.
    Did they asked 400$ for you too ?
    I am also using mac mini and iphone 5s. I think i will never buy an apple again.
    And i will definetly go to court.
    Repair R146244431

  • Mid-2010 Macbook Pro Randomly goes back to login screen?

    My mid-2010 MBP will randomly log me out.  I'll be on the internet or working on a paper and it will go to the blue screen that occurs when you're booting up the computer and then to my login screen, where I have to type in my username and password again.  Anyone else experiencing this?

    eedaley wrote:
    Anyone else experiencing this?
    Hi e,
    No, but try a Safe Boot:
    http://docs.info.apple.com/article.html?artnum=107393

  • Imac 2008 Snow Leopard installed, Wont go past the login screen

    Hello Everyone,
    I am new to this so please bear with me.
    I had been using my Imac lately just to run the sims 3 with extension packs which I played for about 10 minutes.
    Today we had our internet connected as we have moved to a new house.
    The Internet service provider has said the connection should be up and running today.
    I went onto safari and checked two or three emails after that my mouse and keyboard could not do anything.
    No force quit, No command based force quit, no relaunching of the finder, no being able to restart or shut it down at all.
    I remember an echo back up mac thingy jumping up and down too in the dock if that helps
    So I turned it off using the back button and left it off for 5 minutes. The mouse and Keyboard are wireless and run fine at the moment, no flat battery.
    First attempt
    The screen turned on right up until the galaxy looking screen before te login box, the login box did not appear. There was no other way to turn it off other than from the back again.
    Second attempt
    I had left it off for another 5 minutes and turned it back on again, The login screen has appeared, I can type in the password,
    but this time when I pushed enter, the rainbow wheel appears and has stayed on there for the past half an hour.
    Third attempt
    I will switch off the modem, leave the computer off for another 5 minutes and then try anf log back in. Since I will be disconnected to the internet I will update you with the progress and whether this has worked or not.
    This begun to happen as soon as I entered the password for the internet connection. This macbook (late 2008 not pro) detected the connection from the imac (another computer is trying to access your internet connection-sort of thing) and I pressed ok on the macbook. The model of the modem router is D-Link Wireless N300 ADSL2 Modem router if that helps.
    The mac desktop has had an install of snow leopard (so I can not do a restall/reinstall thingy of the current operating system) and all I can find at the moment is the original disks from the box. The mac was originally on 10.5.8.
    Please help me to fnd a way in which I can get back into my computer this would be much appreciated.
    I am not familliar with any technical terms so please keep it simple as I am a noob :3

    Third attempt
    I will switch off the modem, leave the computer off for another 5 minutes and then try anf log back in. Since I will be disconnected to the internet I will update you with the progress and whether this has worked or not.
    Update:
    This time I switched the computer off from the back as there seemed to be no progress made from the rainbow spinning wheel.
    I left it for 5 minutes (the computer) switched off the jack and pulled the plug out.
    I turned off the modem for 5 minutes.
    I turned on the computer without turning on the modem and was able to log in.
    I managed to get into the computer and am currently trying out safari to see if the same problem occurs.
    5 minutes into hotmail, trade sites and you tube it seems to be going OK.
    I guess the computer paicked abit from the new connection perhaps.

  • When i type in my correct password on the login screen and press enter it just goes to a blue screen for a few seconds then goes back to the same login screen again, please i need help?

    When i type in my correct password on the login screen and press enter it just goes to a blue screen for a few seconds then goes back to the same login screen again, please i need help?

    You can take some of the steps here, #4, #5 or even trying a #18
    Step by Step to fix your Mac
    but I suspect your going to first have to create a data recovery drive
    Create a data recovery, undelete boot drive
    to get your data off the machine,
    then do a #20 to eliminate the bad sectors as that's why your getting the "pinwheel" it's getting a delay reading from the drive, right when your trying to log in too, what a bad spot for it to happen.
    Step by Step to fix your Mac

Maybe you are looking for

  • ITunes trouble with Maverick update

    Hello, I just installed Mavericks onto my MacBook Pro and my iTunes won't open. Any help?

  • My phone keeps loading when its suppose to be switching on!

    My phone switches on and gives me the white screen with the loading black thing on the center but that's all it does and it restarts again. legooooo!

  • Error during authentication

    I am getting following error while trying to login to Apex reports menu page. The application uses Database Authentication and there are no other validations. The database account i am using is open and password expiry time is 22-jan-2008. Also i am

  • After a restore my pictures say the requested URL is unavailable

    Had a iPhone 4 and restored it because it was being silly and after it hadn't loaded my pics, videos n music properly! So I went to the shop and traded it for a 4s but when I restored this from my iCloud it says it's downloaded everything but it hasn

  • Apply network settings join domain issues

    I create a default task sequence in CM 2012 R2. On the apply network settings there is the option to join the domain. If I select to join to the domain, there is an account to set.  I set the account and test the account (test button right there) and