File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Send object from applet to servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Send object from applet to servlet" Watch "Send object from applet to servlet" New topic
Author

Send object from applet to servlet

Daia Yum
Greenhorn

Joined: Mar 23, 2009
Posts: 19
I have an object created in applet. And I want to send this object to a servlet. The applet and servlet codes is given below...
There is no exception, but the servlet code is not executed.





Daia
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19990
    
  25

I believe that you need to call getResponseCode() or getInputStream() before the request is actually sent. You can ignore the return values.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Daia Yum
Greenhorn

Joined: Mar 23, 2009
Posts: 19
I dont know how to thank you. But now I'm in the servlet I am getting my Document object. Thanks a lot...
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19990
    
  25

Daia Yum wrote:I dont know how to thank you. [snip] Thanks a lot...

Well, that's how And you're welcome
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Send object from applet to servlet