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?
HokesterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bobbit31Commented:
sorry, didn't read the question carefully.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.