tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessio Fiore <afi...@alteanet.it>
Subject R: implicit object servlet
Date Tue, 07 May 2002 09:03:15 GMT
I think you're talking about struts...
AFAIK a taglibrary is not directly related to a servlet, but a tag handler
has access to the request, where struts sets an attribute for each
datasource, which name is corrisponding to datasource's key attribute:

HttpServletRequest req = (HttpServletRequest)(pageContext.getRequest());
DataSource ds =
(DataSource)(req.getAttribute("your-datasource-key-attribute-value"));

Regards
Alessio


-----Messaggio originale-----
Da: rainer jünger [mailto:juenger@projektinter.net]
Inviato: lunedì 6 maggio 2002 21.27
A: Tomcat Users List
Oggetto: implicit object servlet


Hi,

what is the equivalent implicit object to servlet within a Taglib-class?
I want to use the methode:
servlet.findDataSource(null)
in a Taglib-class

thanks Rainer



- Disclaimer -
This email and any attachments thereto may contain information which is
confidential and/or protected by intellectual property rights and are
intended for the sole use of the recipient(s) named above. Any use of the
information contained herein (including, but not limited to, total or
partial reproduction, communication or distribution in any form) or the
taking of any action in reliance on the contents, by persons other than the
designated recipient(s) is strictly prohibited.

If you have received this email in error, please notify the sender either by
telephone or by email and delete the material from any computer.

Thank you for your cooperation. 



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


Mime
View raw message