File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes null pointer using struts/velocity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "null pointer using struts/velocity" Watch "null pointer using struts/velocity" New topic

null pointer using struts/velocity

Dan Howard

Joined: Oct 10, 2004
Posts: 15
Hi all,

I'm trying to setup a project to test out velocity. Everything seemed ok until I added toolbox.xml to my WEB-INF folder. Now when I launch my main page i get:

I'm sure it's because I'm missing something but I'm not sure what.

This is what my toolbox.xml looks like:

Any ideas?

Dan Howard

Joined: Oct 10, 2004
Posts: 15
Found the problem. I was missing the base action servlet configurations in my struts-config.xml. doh!
I agree. Here's the link:
subject: null pointer using struts/velocity
It's not a secret anymore!