Password Applet Question


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Password Applet Question

  1. #1
    Join Date
    Mar 2006
    Posts
    2

    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?

    Thanks!
    Scott

    -------------------------------------------------------------------------------------------

    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________">
    </applet>

  2. #2
    Join Date
    Mar 2006
    Posts
    2

    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
    name.

    Gee, now I really feel dumb.

    Scott

Similar Threads

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