Are you asking about Tag Files ? The attribute is just something a usual tag attribute you set to the tag : <mytag:hello msg="hello"/>. Here, "msg" is an attibute, and you declare it using the attribute directive. It's read-only. If you modify it in the tag, there's no way to read the new value in the calling page. To do this, you'd use the variable directive.