DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006

    Password Applet Question

    I'm using a java applets that I got from http://javaboutique.internet.com/password/
    (see below).

    It's working fine....but I can't remember exactly how I set it up.

    I remember that I uploaded "password.class" to my web server, along with the password-protected webpage. I remember that I can change the password by renaming the password-protected web page.

    So, what is it that connects password.class to the protected page?

    I feel so silly, because in case I want to put a password elsewhere on my site, I can't remember how I originally set it up. The installation instructions are no longer posted at javaboutique.

    Can anyone enlighten me?



    What password.java does is to take your password, which, if correct,
    sends you to the protected page. An incorrect password takes you to
    password2.html, which is the "wrong password" page.

    How To Use:

    a.. Place password.class within your HTML directory.
    a.. Have two html files for correct and incorrect password entries.

    Java Source: /password/source.html

    HTML Source:

    <applet code="password.class" width=490 height=32>
    <param name=root value="http://javaboutique.internet.com/password/">
    <param name=wrong value="http://javaboutique.internet.com/password/password2.html">
    <param name=bgcolor value="ffffff">
    <param name=fgcolor value="000000">
    <param name=textfield value="40">
    <param name=button value="ENTER">
    <param name=font_size value="12">
    <param name=font_face value="Courier">
    <param name=title value="Web Deve________">

  2. #2
    Join Date
    Mar 2006

    Password Applet Question

    Problem solved! The answer was right in front of my eyes. When I moved the page with the password over to the other hosted domain, I forgot to change the html code to reflect it's new location in the root file of the new domain. Once I adjusted that, it works perfectly. Now I see how simple it is. When one types
    in the password, it looks for an html file in the root directory with that same

    Gee, now I really feel dumb.


Similar Threads

  1. Replies: 2
    Last Post: 02-24-2006, 11:01 PM
  2. short, simple applet question
    By Tom in forum Java
    Replies: 2
    Last Post: 04-27-2002, 12:09 AM
  3. Using Passwords for Log-in's
    By Tricia in forum VB Classic
    Replies: 6
    Last Post: 03-30-2002, 01:23 PM
  4. Replies: 3
    Last Post: 08-23-2001, 11:01 AM

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

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.