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
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 it mentioned,
but not fully explained, in a thread on this list
(Subject: RE: Urgent : Any Example which will show
<htlm:select > <html:option> tag).

my goal is to write a simple tag that downloads a list
of countries from a database table as an ArrayList,
adds it to the session so i can put it into an
. if there is a better approach, please let me know. thanks, andrew. __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ -- To unsubscribe, e-mail: For additional commands, e-mail:

Mike Way,
Senior Consultant, Shared Skills Ltd
+44 (0)1752 491088, mobile +44 (0) 7941 225581
email: [EMAIL PROTECTED] web: www.sharedskills.com


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to