File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "can Http POST Method pass object? " Watch "can Http POST Method pass object? " New topic

can Http POST Method pass object?

tong yuxin

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

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.
I agree. Here's the link:
subject: can Http POST Method pass object?
Similar Threads
passing a matrix
where to find HttpRequest class
Need some explanations about web-services basics.
Looking for a article or tutorial on setting up a web service client
Passing the JSON Array to the servlet