This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can Http POST Method pass object?

 
tong yuxin
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic