Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Struts + Applet issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts + Applet issue" Watch "Struts + Applet issue" New topic
Author

Struts + Applet issue

Patrick Dezenzio
Greenhorn

Joined: Jul 21, 2006
Posts: 10
Hello All,

I have a Struts application running under Tomcat 5 using an Applet as my frontend. The Applet uploads images to the server using the Http Client and FileUpload packages. The upload works great, including a progress bar. The issue is in the action class that saves the files to the server. The action forward returned doesn't do anything. I have a global action forward in my struts-config to forward to a "hello" html page. No errors are dumped. No messages indicate that an issue occurred in the forwarding. Here's my theory: since I am using the HttpClient package and the applet itself waits for a response from the servlet (in this case, a Struts action), the forward is being rejected in favor of sending the response to the applet.

Is there something I need to do on the Struts side, or should I add a NEXT button in the applet to allow the user to forward to the next page (basically, add a manual forward function in the applet)?

Thanks,
Patrick
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts + Applet issue