Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2014
    Posts
    1
    Rep Power
    0

    Default Login Page with the startup

    Hi Guys,

    I am new to java just today downloaded eclipse and for the database i installed MSSQL 2008 R2. I want to make a webpage where i started with the login credentials, I have no clue how to start i am trying hard to get the start can anyone help me out that how to make a webpage for the login credentials??


    I need two boxes

    ID:

    Password:

    [Submit Button]

    Please guys help me from the start how to make a webpage and how can i run locally should i install IIS?

    Thanks in advance.

  2. #2
    exonaut is offline Member
    Join Date
    Mar 2013
    Location
    USA
    Posts
    25
    Rep Power
    0

    Default Re: Login Page with the startup

    Look into Swing, but I'd recommend learning Java before you jump into something like this. I'd also recommend MySQL or PostgreSQL instead of MSSQL. JDBC is what you'd need to use and manipulate SQL databases in Java and you'd basically make a JTextField and JPasswordField for the text input with a basic JButton for submitting. Then, using an ActionListener, you'd test if the button is pressed and when it is you'd check your database to see if the user exists.

  3. #3
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Re: Login Page with the startup

    It seems unlikely that Java is the right language for the job.
    Get in the habit of using standard Java naming conventions!

  4. #4
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Re: Login Page with the startup

    Can we, like, ban IPs or subnets?
    Get in the habit of using standard Java naming conventions!

  5. #5
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,539
    Blog Entries
    7
    Rep Power
    20

    Default Re: Login Page with the startup

    Quote Originally Posted by kjkrum View Post
    Can we, like, ban IPs or subnets?
    I shredded most of those spammers (banned, blocked and reported them to a central block-spam database); unfortunately I have to do that per individual spammer (it has become a daily job on this forum ;-)

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  6. #6
    jashburn is offline Senior Member
    Join Date
    Feb 2014
    Posts
    219
    Rep Power
    1

    Default Re: Login Page with the startup

    The original post is effectively asking for help getting started with a simple Java web app (web application). The learning curve going straight into this is steep, and is usually not the starting point for someone new to Java. It involves using HTML, JSP, Java servlet and JDBC.

    To give you a flavour of what this entails, do a google/bing search using the search term "servlet login tutorial". Here are a few that I've found:

    Do go through the links above, especially the first introduction article, to see if this is what you really want to do.

    You'll need an application server or servlet container to run the web app, and I recommend Apache Tomcat. You can (kind of) use IIS for this, but based on what I've read setting up IIS to do this is not trivial. As for the database, MS SQL can be used as MS provides a JDBC driver for it, but unless you're already familiar with MS SQL, it'll be better to use MySQL or PostgreSQL, or even Java DB (Apache Derby) that is bundled with the JDK.

    Be aware that you should have decent grounding in 'plain' Java before moving on to web apps, and you can start with

    Hth!

  7. #7
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,030
    Rep Power
    6

    Default Re: Login Page with the startup

    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  8. #8
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,539
    Blog Entries
    7
    Rep Power
    20

    Default Re: Login Page with the startup

    Quote Originally Posted by gimbal2 View Post
    Isn't JSP technology considered to be dead? (if it isn't, I volunteer to break its knee caps and stab it in the back)

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. ejb login page
    By mtrsykl in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 05-07-2013, 10:52 AM
  2. Login window before application startup
    By Gloomy in forum AWT / Swing
    Replies: 5
    Last Post: 07-19-2010, 09:22 PM
  3. JSP login page
    By banie in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 09-06-2008, 04:23 AM
  4. Login page
    By banie in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 07-03-2008, 02:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •