Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

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?
0
Hokester
Asked:
Hokester
  • 2
  • 2
  • 2
  • +1
1 Solution
 
CEHJCommented:
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
0
 
bobbit31Commented:
why not call the submit directly from the applet?

this.getAppletContext().showDocument(new URL("http://www.yourserver.com?user=" + cmbUser().getText() + "&pass=" + txtPassword().getText()));
0
 
bobbit31Commented:
sorry, didn't read the question carefully.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
HokesterAuthor Commented:
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.
0
 
HokesterAuthor Commented:
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.
0
 
CEHJCommented:
My idea is to pass the form input to the applet for validation.
0
 
CleanupPingCommented:
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.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now