The Jsp file to the same is as follows. http://old.nabble.com/file/p31124495/newjsp.txt newjsp.txt
JavaNoobie wrote: > > Hi All, > This is in following to my previous message . > I have developed a small CRUD example using struts 2 . But when I try to > run the same it throws an error (Null pointer exception).. The exception > stack trace is as follows. > Inside AddDomain > java.lang.NullPointerException > at > com.vivek.struts2.action.DomainAction1.listDomain(DomainAction1.java:92) > at > com.vivek.struts2.action.DomainAction1.addupDomain(DomainAction1.java:81) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404).... > > Could anyone please guide me as to where Im going wrong . Im attaching the > source code of my action , dao class , xml files ad jsp here .Please help. > http://old.nabble.com/file/p31124479/DomainAction1.txt DomainAction1.txt > http://old.nabble.com/file/p31124479/DomainDAO.txt DomainDAO.txt > http://old.nabble.com/file/p31124479/strutsxml.txt strutsxml.txt > > -- View this message in context: http://old.nabble.com/Code-Help%3ACRUD-example-tp31124479p31124495.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org