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
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
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
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
4 matches
Mail list logo