Hi, Any help please.slightly desperate.
Thnx in advance, Sirisha. ________________________________ From: sirisha <[email protected]> To: RedDot CMS Users <[email protected]> Sent: Thursday, May 14, 2009 1:37:29 AM Subject: RDLS Open API Hi, I am a newbie to RDLS API programming and just need some help. I think its frustrating to answer to basic stuff but any help would be very thankful. Is there any document where i can find how to write a sample weblet and add it to live server and then call it. I am assuming that we create a class file and then add it to liveserver using the hot deployment configuration and then call it from the URL. please correct me if i am wrong. But what i am not able to figure out is how to create class files. i got this sample code from the help and i saved it as .java and tried to create the java class. But i think i have to add certain packages to create the class files but i cant find the packages in LiveServer installation. Can you guys please guide me where i can find the packages. Please do correct me if this is the wrong method to create the class file also. public final class MyWeblet extends WebletAdapter { public final void handleRequest( CoaSession session, WebletRequest request, WebletResponse response ) throws Exception { StringBuffer html = new StringBuffer(); html.append("<HTML><BODY>\n"); html.append("Hello World!\n"); html.append("</BODY></HTML>\n"); response.getHttpServletResponse().setStatus(200); response.printString( html.toString(), false, "text/html" ); } } If possible can you share a complete basic sample code that could help me understand how they work. thanks, Sirisha. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/RedDot-CMS-Users?hl=en -~----------~----~----~----~------~----~------~--~---
