Simple Login Application

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Simple Login Application

  1. #1
    Join Date
    Feb 2008

    Simple Login Application

    Hi everyone,

    I am new to Java Servlets and I just want to ask help on how to do this particular exercise.

    1.) Create a project in Eclipse. Name it ServletActivity 1 – Login Application.

    2.) Create an HTML file which accepts a Username and Password. Name it “input.html”. Add a “Submit” button inside the HTML. Enclose the Submit Button and User Name and Password field inside a form. See Screenshot 1.

    3.) Create a java servlet class and name it “”. This servlet should be called upon clicking the Submit button in input.html. This servlet should display “Welcome <Username that the user entered in input.html>” (See Screenshot 2). If the user did not enter any username or password, display an error message (See Screenshot 3). Use response.getWriter() to output your responses. Use also request.getParameter(..) to retrieve the values of username and password from input.html.

    4.) Configure your servlet in web.xml. Deploy and test the application.

    Screenshot 1:

    Screenshot 2:

    Screenshot 3:

    I know this sounds too simple for you, but I really don't have a clue on how to do this. I already have my Eclipse setup with JBoss server. Thanks in advance!

  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    What have you got so far, and what are you having problems with?

Similar Threads

  1. login problem
    By dbrook007 in forum ASP.NET
    Replies: 0
    Last Post: 11-06-2006, 04:54 AM
  2. Replies: 1
    Last Post: 12-04-2002, 02:04 PM
  3. Execute and application
    By Marco Losavio in forum .NET
    Replies: 0
    Last Post: 08-22-2002, 09:49 AM
  4. Application vs. Web Servers
    By Matt in forum Web
    Replies: 1
    Last Post: 06-12-2000, 06:24 PM
  5. DataBase Application On ISDN Line
    By CHOO in forum VB Classic
    Replies: 0
    Last Post: 05-02-2000, 08:53 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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center