wood burning stoves 2.0
The moose likes Struts and the fly likes Struts + Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts + Applet" Watch "Struts + Applet" New topic

Struts + Applet

Velika Srbija
Ranch Hand

Joined: Jan 15, 2002
Posts: 172
I have integrated an Applet into my Struts based wizard web-app.
Everything works OK until I have to get back to the input page that contains an applet using "return (new ActionForward(mapping.getInput()));".
Generated HTML is OK but my applet class doesn't get reloaded.
I understand it is because request didn't came from the browser, i.e. the page was sent from the server, and the browser just display what he received, but how can I force the browser to dispaly my applet in this case?
Velika Srbija
Ranch Hand

Joined: Jan 15, 2002
Posts: 172
Still confused.
I have switched from using APPLET tag to <jsp lugin ...> with parameter <jsp aram name="cache_option" value="No" />, and it works. An applet doesn't get cached. But the problem remains. When I forward to my input JSP using "return (new ActionForward(mapping.getInput()));", Java Plugin displays a message saying something like "... applet class not found... IO error...(...stack trace...)". I understand that an applet should be loaded from the server on each pointing to the JSP page, but that doesn't happen.

When I type the URL of my JSP page into address field of my IE an applet gets loaded, but when my Actin Servlet (using forward) point back to the same JSP page, an applet doesn't get loaded.

What is goin' on here?
I agree. Here's the link: http://aspose.com/file-tools
subject: Struts + Applet
It's not a secret anymore!