Struts1 return and applet lifecycle

Hello
Is it standard for the return of a action with mapping.findForward("some.jsp")/maping.findInputForward() to force the stop(), destroy(),start() of a loaded applet? I get to the page, but my applet's destroy() is being called and then start(), but all the session objects are updated and show the new values on the page. That is what I expect, but not with the applet destroy() and start(). Further if I call this action with an Ajax call, it returns and does not force the destroy(), start(), but the session objects are not updated and the old values are retained. Any fundamental insight would be appreciated.

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156

posted Jul 23, 2009 05:55:00

0

Hello
Sorry to whine, however can anyone provide any insight on this issue? tia.

I do not understand your requirement, but it looks like you want to handle the various Applet life cycle call using the return type of Struts Action, which I suppose is impossible. The applet gets loaded into a browser memory as soon as browser see the call to that applet using <applet> tag and you cant passed the "parameter" to the applet to change its behavior as per the Action return. Try using JavaScript to pass the parameters to applet.