accessing DataSource from custom tag

2002-11-05 Thread Andrew
is there any way to access the DataSource defined in struts-config.xml from within a custom tag. i usually get it from the ActionServlet context attribute Action.DATA_SOURCE_KEY from within an Action. but its not defined in the pageContext of a tag, so i assume its not easy to do, though i saw

Re: accessing DataSource from custom tag

2002-11-05 Thread Mike Way
Andrew, pageContext.getServletContext().getAttribute( But, do you really want to do this ? Mike At 02:53 05/11/2002 -0800, you wrote: is there any way to access the DataSource defined in struts-config.xml from within a custom tag. i usually get it from the ActionServlet context

Re: accessing DataSource from custom tag

2002-11-05 Thread Kevin . Bedell
PROTECTED] on 11/05/2002 06:04:22 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:Struts Users Mailing List [EMAIL PROTECTED] cc: (bcc: Kevin Bedell/Systems/USHO/SunLife) Subject:Re: accessing DataSource from custom tag Andrew, pageContext.getServletContext

Re: accessing DataSource from custom tag

2002-11-05 Thread Andrew
Mailing List [EMAIL PROTECTED] cc: (bcc: Kevin Bedell/Systems/USHO/SunLife) Subject:Re: accessing DataSource from custom tag Andrew, pageContext.getServletContext().getAttribute( But, do you really want to do this ? Mike At 02:53 05/11/2002 -0800, you wrote