• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call the action class from Applet

 
Shyam Hai
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,

I want to do file uploading from applet to action class.
How can i do.

But i tried file uploading from Applet to servlet.
its working fine.

But i need Applet to action class.

First i put the code for Applet to servlet.

Applet Class Code:



Servlet Code :





web.xml :




Its working fine.

But If i call Action class like this from applet.
it not working.



Its not working.
How can i call the action.

Or please give any idea
for uploading the file from applet to struts action class.



 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read ItDoesntWorkIsUseless and TellTheDetails: you wouldn't expect an auto mechanic to diagnose and solve a problem with your car without being able to look at the car. We're not at your machine and have no other information other than what you choose to share--without knowing what's happening, what you expected, what (if any) errors you received, and so on, it's impossible to help.
 
Shyam Hai
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

ok i understand.

Actually if i run
call Applet to servlet
the file upload from applet and stored in sevlet side.

but if i call applet from struts action.
then i will get waring only.

<Warning> <Socket> <BEA-000449> <Closing socket as no data read from it during the configured idle timeout of 5 secs>

please help how to upload the file applet to struts action calss.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic