Re: getDataSource() in JSP

2004-10-07 Thread Jonathan Wright
Your DataSources are stored in the application context. Use your implicit pageContext reference to get a reference to the servlet / application context, then get your data source using (DataSource)ctx.getAttribute("dataSource"); Jonathan Wright - Original Message - From: "Shailender Jain"

Re: getDataSource() in JSP

2004-10-06 Thread brenmcguire
"getDataSource" is a protected method inside the class Action, so you cannot use it directly. Anyway I suggest to copy the code from the source of Action, because it simply takes an object (i.e. the DataSource) from the application scope. Ciao Antonio Petrelli Shailender Jain wrote: >Hello, > >I