wood burning stoves*
The moose likes Struts and the fly likes Struts1 return and applet lifecycle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts1 return and applet lifecycle" Watch "Struts1 return and applet lifecycle" New topic
Author

Struts1 return and applet lifecycle

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
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
Hello
Sorry to whine, however can anyone provide any insight on this issue? tia.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
 
subject: Struts1 return and applet lifecycle
 
Similar Threads
destroy() method
Force reprocess of jsp
problem with Struts Logic:iterate
Loading of applets in browser
Correct way to use getSession() in actions?