applet and jsp - retain values in applet ?? PLEASE HELP!
posted 15 years ago
Hello -- I have an applet living in a browser. When the user selects an item out of a specific combo box, the browser should then redirect to the jsp specified in the selected item. When the user has finished entering all info in the jsp, the browser needs to return to the initial page that has the applet. Now that the applet is again visible, it needs to display all the data that was originally entered in the form (textfield values, radio button and combo box selections, etc). How do I do this? From my understanding, applets do not maintain state between browser pages. Also, I thought of using a java bean to retain the applet values, but I can't seem to get the bean to stay alive when it gets to the selected jsp page, much less to pass the bean back to the applet. The business owner is adament that the applet should not start a new browser for the jsp, but that the browser should redirect the user from the applet to the jsp and then back to the applet. Does anyone know how I can accomplish this task? Many thanks in advance.