Link to home
Start Free TrialLog in
Avatar of Hokester
Hokester

asked on

Java Applet Question

I would like to create an html file that has a java applet that simply has a dropdown box of 12 names. It will then have a password field where the user can type in a password.

Down in the html file i will have a small form and a submit button. The submit button will do a check to see if the password has been verified with that particular name, and then do the onsubmit form process, otherwise, it will do something else.  Is this possible?
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Yes. Read the file into a list and check the password against the elements. Two provisos:

1. Use a url connection on the file - don't use File
2. Better to encrypt the strings as their hash values and validate the hash value of the input
ASKER CERTIFIED SOLUTION
Avatar of bobbit31
bobbit31
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
sorry, didn't read the question carefully.
Avatar of Hokester
Hokester

ASKER

CEHJ,

I dont understand what you are sayign to do.  Maybe my explanation is confusing.

I want to have an html page with a form and an applet on it.

The form will have some data for the user to input.  If the password field in the applet has been verified, then i want the submit button inside the html part(and not on the applet part) to process the data of the form. If the password is not verified, then the submit form data will fail.
CEHJ,

I dont understand what you are sayign to do.  Maybe my explanation is confusing.

I want to have an html page with a form and an applet on it.

The form will have some data for the user to input.  If the password field in the applet has been verified, then i want the submit button inside the html part(and not on the applet part) to process the data of the form. If the password is not verified, then the submit form data will fail.
My idea is to pass the form input to the applet for validation.
Hokester:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.