Re: How to access the Struts ConnectionPool from an ActionForm

2002-11-21 Thread Steven Citron-Pousty
The servlet is null. So then how and what do I tell the actionform is its servlet. Thanks, Steve PS I still am interested in ppls view on whether all DB calls are model or there is a case when you could consider the DB call view Jagdish Arora wrote: Steven, since you are getting a NPE, could

RE: How to access the Struts ConnectionPool from an ActionForm

2002-11-21 Thread Assenza, Chris
Steve, If memory serves, I don't think you can get the ActionServlet (thus the servlet) from the Form; but it's been a long time since I last looked at that stuff and I may well be incorrect on that - it's just a guess. As for the db call issue, it makes more sense for something like that to be

Re: How to access the Struts ConnectionPool from an ActionForm

2002-11-21 Thread Steven Citron-Pousty
I think thats kinda it. I think whats happening is that the jsp was being called before the webapp had ever touched the servlet (i.e. the user could go straight to the jsp). Therefore maybe the form doesn't know which servlet its talking to. Is there a way to get the context attribute without