From: Lars H. <he...@se...> - 2006-06-12 13:56:06
|
Hi =D6=DC=CD=A4, > Hello, > I have written a program with TMAPI which runs correct in the Java > environment,but when I want to display my topic map in my browser and i= ntend > to use JSP to realize it, it failed. I don't know why and can you help = me?My > JSP code is in the accessory. [...] Your code: Topic topic=3Dnull; topic.createTopicName("chapter",null); Iterator it =3D topic.getTopicNames().iterator(); TopicName tn=3D (TopicName)it.next(); out.println(tn.getValue()); cannot work. Regardless of the environment. The code MUST produce a NullpointerException, because of the first two lines Topic topic =3D null; topic.createTopicName("chapter", null); This should work: Topic topic =3D topicMap.createTopic(); topic.createTopicName("chapter", null); The topicMap must be initialized, of course. Best regards, Lars --=20 http://www.semagia.com http://www.topicgarden.com/mailinglist/ German Topic Maps mailinglist |