This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes How to call variables in one applet using another applet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "How to call variables in one applet using another applet?" Watch "How to call variables in one applet using another applet?" New topic
Author

How to call variables in one applet using another applet?

Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

In my project, I have to create two applets. Those are parts of registration form. User has to give his personal details in the first form and click OK button. So it will take you to the next applet which will take details about Qualifications. There is a submit button. When the user clicks on that submit button, details in the both form should save in one file. That is the real case. Please help me.


Are you better than me? Then please show me my mistakes..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41123
    
  45
Why two applets? Have you considered having just one applet, and using a CardLayout to switch between the two parts of it? That would make handling the data much simpler (not to mention easier to develop and easier to use).


Ping & DNS - my free Android networking tools app
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Thank you very much for the reply. Don't know how to thank you. That was the exact thing I was looking for. Anyway here is my code.



As you can see, there is an error, which I can't understand why. Please help me to solve this. Thanks again.
 
Consider Paul's rocket mass heater.
 
subject: How to call variables in one applet using another applet?
 
Similar Threads
UPLOAD IMAGE and OTHER DATA
Two submit buttons.
Two submit buttons in a form?
Form submission and iFrame
success alert using javascript