The getResponse method of the AspContext class creates an instance of the Response object.
public static Response getResponse();
The following example shows how to use the getResponse method to send a response to the client. The example assumes that the component is being called after a form has been submitted with a field named textin that holds the string to be sent to the client.
import com.ms.iis.asp.*; public class getresptest { public boolean sendResp() { Response resMyRes = AspContext.getResponse (); resMyRes.write(“Hello World”); return true } }