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
    Posts
    0

    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 “DisplayServlet.java”. 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 DisplayServlet.java 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
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    What have you got so far, and what are you having problems with?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

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


   Development Centers

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