The ActionServlet in an ActionForm is a private member with no accessor methods. So, try this in your form:
this.servlet.getServletContext();
HTH,
Curtis
Albrecht Berger wrote:
Hello,
I need the ServletContext in one of my forms, which I'm trying to get with : getServlet().getServletContext()
Unfortunately I get a NullpointerException, because the servlet is null.
How could this be, is there a workaround ?
Thx berger
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]