i have been trying for many hours to communicate applet to servlet only, not vice-versa using object serialization.
i am using appropiate code, that is being used mostly rather i m having a deep look up around it also.
although most of the resources describing a two way communication but i haven't found ever that one way communication is not possible.generally when i use my way then servlet class does not seems to run but when convert it in two way then everything starts working.
[ November 20, 2007: Message edited by: Nidhi Nagre ]
Mr Ulf wrote:
What is the rationale for only wanting to send data one way?
because after getting post reqest at servlet side i want to redirect it to another jsp page using requestDispatcher() method. since at servlet side one of these two issues(either forwarding request to another jsp or sending back response to objectoutputstream) is allowed. and my requrement is to forwarding request to another jsp page.
Mr William wrote:
Seems to me you are going to want at least a reply that indicates the data was received properly - otherwise you will have no idea what happened to it. Suppose the servlet is offline for some reason for example.
yeah, using one way communication since servlet class seems not to run.
you are again right that it is not hard to take response through HttpURLConnection, but it is not relevant to my requirement.
although i can use directly get method instead of post, since ,however i have data too long hence using this would not so reliable.
any other solution?
definitly i would be out of this hurdle if you kindly put some snippet in your way if my intention cleared to you.
1)send data to servlet via post
2)forward it to another jsp
3)come back to servlet, even to applet from which request was made in accordance with few conditions