Suresh wrote:
> Does Struts provide any tag to access attributes set in a
> ServletContext?
I'm using:
<html-el:options collection="contactTypes" property="key"
labelProperty="value"/>
where 'contactTypes' is a Map stored with
ServletContext sc = sce.getServletContext();
Map contactTypes = valcodesDAO.read( "X.STAFF.CONTACT.TYPES", " - " );
sc.setAttribute( "contactTypes", contactTypes );
in a ServletContextListener.
I think most of the Struts tags will automatically check for attributes in
page/request/session/application scope.
Do you have something that isn't working as you expect?
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management