This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "null pointer using struts/velocity" Watch "null pointer using struts/velocity" New topic
Author

null pointer using struts/velocity

Dan Howard
Greenhorn

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?

TIA
Dan Howard
Greenhorn

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: http://aspose.com/file-tools
 
subject: null pointer using struts/velocity
 
Similar Threads
Srping+Hibernate bad configurated causing huge memory consumption
Exception: Unable to find resource '/WEB-INF/templates/hello.vm'
Velocity and toolbox.xml
Journal Article - Velocity - An Introduction
Problem with velocity templates