thanks for ur reply ben,
but as u can see in the code that i've posted,i am using
String field=item.getFieldName();
String value=item.getString();
to get name of field and its value,these functions are from fileupload class only.
i am facing a very strange problem...sometimes i get values and at other time i get null.i am neither able to find out the reason nor solve the problem.
however the file uploading part gets implemented succesfully in any case.
pls help me out,its pretty urgent.