Hello dear friends, Please help me with a strange problem happening with orion. I am calling url.openConnection() to a servlet page.When I call this, the call goes to doGet method of the servlet. But it has to go to the doPost method. Second problem is I am able to read the values from the callee servlet. But I am not able to pass the values to the callee servlet.I am trying to pass objects in a stream.I have seen this problem reported in the mailing list. Can anyone help me in this?
Please find the sample code, Caller Servlet URLConncetion con =url.openConnection("http://ipname:port/Servlet1"); ObjectOutputStream os = new ObjectOutputStream(con.getOutputStream()); os.writeObject("string object"); Callee servlet(Servlet1.java) public void doGet(HttpServletRequest req,HttpServletResponse res) { ObjectInputStream ois = new ObjectInputStream(req.getInputStream()); ois.readObject();//This line , it prints null.It wont print the string //"string object".But if I return values from the servlet1, then Caller servlet is able to read. Can some one throw some light on this. _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com