This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Can we do Socket Programming in Servlets or JSP? OR can we call a class from Servlets/JSP that does socket connection. I have a class that does a socket connection and then closes the socket when processing is done. When I try to instantiate this class from JSP I get a IllegalStateException: Response has already been commited error. Why am I getting this error? I havent even called any method I get this error just by instantiating the class. If I comment the socket part from the class then it works fine. regards
Thomas, please do not cross-post the same question in multiple forums. Please continue this discussion in the Servlets forum. Additionally, there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it. In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. Thanks! bear JSP Forum Bartender