aspose file tools*
The moose likes Servlets and the fly likes can Http POST Method pass object? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "can Http POST Method pass object? " Watch "can Http POST Method pass object? " New topic
Author

can Http POST Method pass object?

tong yuxin
Greenhorn

Joined: Jul 21, 2008
Posts: 19
recently, I just start to learn J2EE.

i read some code find all post method are passing the parameters in their body to Web server.

my question is :
Could a post method pass a object or object reference in their body to Web server(container). if it does, it will so cool. just like rmi.


SJCP 98%
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

The data posted typically comes from a browser, and the browser doesn't know anything about 'objects'

It is possible to set up applet-servlet communication, but typically the objects are sent (via an object stream) to the client rather than the other way around. I see security issues in accepting object data from clients.
 
 
subject: can Http POST Method pass object?