DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29087>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29087 variables/attributes declared in tag files are not visible to fragments passed in [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2004-05-19 18:17 ------- Not a bug. See JSP.5.12.3 ("Providing a Fragment Access to Variables"): Tag files have access to a local page scope, separate from the page scope of the calling page. When a tag file invokes a fragment that appears in the calling page, the JSP container provides a way to synchronize variables between the local page scope in the tag file and the page scope of the calling page. For each variable that is to be synchronized, the tag file author must declare the variable with a scope of either AT_BEGIN or NESTED. In order for your scenario to work, you need to make the following modifications: test.jsp: <%@ taglib prefix="tt" tagdir="/WEB-INF/tags" %> <tt:test item="some string">Have item: ${empty xxx}</tt:test> test.tagx: <jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" > <jsp:directive.attribute name="item"/> <jsp:directive.variable name-given="xxx" scope="NESTED"/> <c:set var="xxx" value="${item}"/> <jsp:doBody/> </jsp:root> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]