Hi,
Im submitting an acrobat form to a servlet using FDF. I created the form using openoffice by setting the URL (without any trailing #FDF, openoffice wouldnt let me) in the form property and the setting the 'submit as' to FDF when exporting to pdf.
However the servletrequest object doesnt seem to contain the form fields when I try to query it using the request.getParameter(fieldName) syntax. Is there something I should be doing differently?
Here is the brief snippet of my serlvet:
public void doPost(HttpServletRequest oReq, HttpServletResponse oRes) throws ServletException, IOException {
System.out.println("***WebserviceTestServlet doPost called****");
OutputStream os = oRes.getOutputStream();
InputStream is = oReq.getInputStream();
String field1= oReq.getParameter("sField1");
String field2= oReq.getParameter("sField2");
Both of these fields evaluate to null and my servlet throws a nullPointerException soon afterwards. any pointers? :-)
Thanks