--------Livelink Appearance: the easiest way to skin Livelink.Contact hstoop@opentext.com for more information.
-----Original Message-----From: eLink Discussion: Development Discussion [mailto:development@elinkkc.opentext.com]Sent: maandag 25 november 2002 12:54To: eLink RecipientSubject: Request Handler doesn?t get invoke Request Handler doesn?t get invoke Posted by ecead_mad (Dayeh, Mahmoud) on 11/25/2002 06:48 AM In reply to: Applet Communication with RequestHandlers Posted by ecead_mad (Dayeh, Mahmoud) on 11/23/2002 05:38 AM Hello Martin, Thanks for the prompy reply. However the code still doesn?t solve my problem. The request handler is just not called for some reason. ? don?t know why ?. If I make use URLEncoder.encode function of java and then use the url object, in such case I don?t get any response back not even any error. However when I call the url without encoding it I get a file back as a stream which is nothing but livelink login page. I am putting my code , please let me know where I am going wrong. I am making use of webdsp request handler. So I don?t think logging should be an issue.My Code.I am calling the following code on click of a button //URL url=new URL("http://localhost/Livelink/livelink.exe?func=sandy.requestHandler&Username=Admin&Password=livelink");url=new URL("http://sandeep/Livelink/livelink.exe?func=LL.login&username=Admin&password=livelink&nexturl="+URLEncoder.encode("/livelink/livelink.exe?func=sandy.RH"));URLConnection urlcon=url.openConnection();urlcon.setDoInput(true);urlcon.setDoOutput(true);urlcon.setUseCaches(false);urlcon.setAllowUserInteraction( false );urlcon.setRequestProperty("Content-type","application/octet-stream");//Sending the request DataOutputStream objOutStream=new DataOutputStream(urlcon.getOutputStream());objOutStream.writeUTF("ID = "+String.valueOf(2533));objOutStream.flush();objOutStream.close();//Reading the value from request handlerSystem.out.println("Object Send");DataInputStream dataInputStream = new DataInputStream(urlcon.getInputStream());String strRequestObj=dataInputStream.readLine() ;String str="";StringBuffer buffer=new StringBuffer();while((str=dataInputStream.readLine())!=null){ buffer.append(str);} System.out.println("Input recieved =" +buffer.toString());dataInputStream.close();System.out.println("Over");