Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts1 return and applet lifecycle

 
Chris Pat
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
Sorry to whine, however can anyone provide any insight on this issue? tia.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic