The getRequest method of the AspContext class creates an instance of the Request object.
public static Request getRequest();
The following example shows how to get a form from the Response object and return the number of items on the form.
import com.ms.iis.asp.*; public class getrequest { public int getReqcount() { Request reqMyReq = AspContext.getRequest (); RequestDictionary reqdictVar = reqMyReq.getForm (); //Returns the number of items on the form return reqdictVar.getCount(); } }