- Dec 2, 2002
- 1,916
- 0
- 0
I am looking for a JSP tag that I can pass as a parameter an element ID (for example, the ID of an image, button, hyperlink, textbox, etc.). The JSP tag will check this ID against an XML file listing all roles that are allowed to view that element. The XML file will of course have been created beforehand by the site admin. If the current user that is signed in to the site is in an authorized role, then it will show the content that is between the tags, if not, it will hide the content. For example:
<tag
ageLevelSecurity elementID="myImage">
<img src="..." id="myImage" />
</tag
ageLevelSecurity>
If the XML file states that user theUser in role theRole is allowed to see myImage, then myImage will be displayed, otherwise the body of the tag will be ignored.
TIA!
<tag
<img src="..." id="myImage" />
</tag
If the XML file states that user theUser in role theRole is allowed to see myImage, then myImage will be displayed, otherwise the body of the tag will be ignored.
TIA!
