Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] strange value returned by
 formFields.get(fieldName)

li chen

2007-06-25

Replies:

i tried to print out the formField and its value like this

Iterator nameIterator = formFieldNames.iterator();
while (nameIterator.hasNext()) {
String fieldName = (String) nameIterator.next();
Object value = formFields.get(fieldName);
System.out.println("name is "+fieldName+" value "+ value.toString());
}

i was expecting some numbers or a string, but it came out like this
name is MCD[0].RoHSpage2[0].RoHSExemptionCheckbox[0].RoHSEx7a[0] value com.lowagie.text.pdf.AcroFields$Item@(protected)

name is MCD[0].RoHSpage2[0].RoHSgroup[0].SupplierAcceptance[0] value com.lowagie.text.pdf.AcroFields$Item@(protected)

name is MCD[0].JIGPage3[0].JIGBsubform[0].SectionA[0].LineItem[0].SubPartNameSf[0].MaterialSf[4].MaterialWeight[0] value com.lowagie.text.pdf.AcroFields$Item@(protected)

anybody got an idea why this is happening? i'm looking for the value for the formfield.
Thanks


   ____________________________________________________________________________________
Shape Yahoo! in your own image. Join our Network Research Panel today!  http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.