This isn't a struts specific question (more towards tag-libs) but I figure it is worth asking:
Why does org.apache.taglivs.standard.tag.common.sql.DataSourceUtil assume that the datasource is within java:comp/env? What if you loaded it outside of Tomcat into another namespace (since Tomcat makes java:comp/env read-only) so that your app is not tied to Tomcat's server.xml file (in case you would want to change web servers easily)? If I want to use <sql:query> I have to now load my datasource in Tomcats context configuration because of this. Just curious if there is a set standard that says I have to use java:comp/env and therefore am tied to Tomcat's config file since it makes it read-only after initialization. Thanks! -- Sloan