Well, looks like my problem was that i needed an inputstream in the applet for the response from the servlet.the POST method in the servlet wasnt being used because of this, which seemed kinda dumb since i was using this:
servletConnection.setDoInput(false);
but im new to this, so this method probably does something else….in any case i can now send a string from a servlet to a applet and vice versa.all i need now is to try sending info to a bean from the servlet
EDIT: Actually, i think all i need now is to send the nodeRef of the file/document that im currently looking at. I already got the nodeRef in the backing bean from the parameters map, but how do i send that nodeRef to the servlet?EDIT2: This was simpler then i thought… All i needed now was to put a static method on the servlet class that had a String as a parameter (for the nodeRef) and invoke that method from the bean…Ps: thanks Savic and Gyro for your help