Where would I put that statement? In my action class I return
mapping.findForward("anything"); in all cases. In all my other classes
its just getters and setters.
- Paul
Shinobu Kawai wrote:
Hi Paul,
I have written a few java files and rewrote a template to be more like a
template rather then standard html. When I tried to view the webpage I
found that I have a NullPointerException. Usually when there is a NPE
the compiler tells me where in my code the NPE is coming from. However
it just starts out with
"org.apache.velocity.tools.struts.StrutsUtils.getMessageResources(StrutsUtils.java:211)"
Source says, you didn't give it a ServletContext, or a ModuleConfig
could not be found.
return (MessageResources)app.getAttribute(Globals.MESSAGES_KEY +
moduleConfig.getPrefix());
I think the problem is that the properties file I defined is not moved
to the classes directory when the javacode is compiled. How do I do
that if I am using Ant to compiule my source code? However when I did
move the properties file into the right directory, I still get the same
error. Oh yeah this happens on all velocity pages that I created
before I changed the code.
If you need to see the entire error please let me know and I will
provide it.
I think it would. Better yet, you could show us some minimal code to
reproduce your problem. ;)
As for the Ant question, the Ant User List would be a better place to ask.
http://ant.apache.org/mail.html
Best regards,
-- Shinobu
--
Shinobu Kawai <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]