Greetings all:I am trying to populate the options for a select list from a DB call. And I am getting a null pointer exception from this line in the ActionForm:To: [EMAIL PROTECTED]

DataSource dataSource = (DataSource) servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY);To: [EMAIL PROTECTED]

What I am trying to do is use the ConnectionPool provided by Struts. This call works great in my Action but doesn't work in my ActionForm.On the IRC channel (irc.freenode.net #struts) we have been discussing the merits of putting a DB call in an ActionForm.To: [EMAIL PROTECTED]

SOoo, my main question is,How do I ask the context for the connection pool in an ActionForm?To: [EMAIL PROTECTED]

But I would also love to see discussion about the merits of putting a DB call in an ActionForm at all. If I didn't put the call in the ActionForm how would I get the data from the DB call into the actionForm?To: [EMAIL PROTECTED]

Thanks in advance for all your help,SteveTo: [EMAIL PROTECTED]

_______________________________________________
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.netbean.net/mailman/listinfo/mvc-programmers

Reply via email to