Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Importing external jar, and creating objects

Hi all

I create some xml parser in java and web dynpro.

I made my own package of classes that parse xml files, then I made jar file from this package and added it to build path of my web dynpro project.

I've got this code in public void wdDoInit() :

PersonsFromDoc docPerson =
			new PersonsFromDoc("c:/person.xml", "c:/test.xml");


		IWDNodeElement element;
		for (int i = 0; i < docPerson.personList.size(); i++) {
			PersonBean os = (PersonBean) docPerson.personList.get(i);
			element = wdContext.createPersonBeanElement(os);

field personList in PersonsFromDoc class is an ArrayList of objects of PersonBean class.

PersonBean class has some string fields.

Now, I don't know why when I am checking some fields from os (PersonBean object) they are null. PersonsFromDoc class is correct - I've tested it and field personList is full of information.

Does anybody know what's the solution of this problem?

Former Member
Not what you were looking for? View more on this topic or Ask a question