getInputStream « Request « JSP-Servlet Q&A





1. Unable to read request.getInputStream    stackoverflow.com

Following is my action class

import java.io.InputStream;

import javax.servlet.ServletInputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.opensymphony.xwork2.ActionSupport;

import org.apache.struts2.ServletActionContext;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;

public class AccessRequest extends ActionSupport implements 
             ...

2. Question about (ServletInputStream)request.getInputStream;    forums.netbeans.org

The following information is included as a header of an HTTP POST request object, sent to a JSP. null-----------------------------4827543632391 Content-Disposition: form-data; name="text1" -----------------------------4827543632391 Content-Disposition: form-data; name="file1"; filename="star wars add.txt" Content-Type: text/plain ...