This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
So I'm attempting to use purely XML based JSP 2 tag files and I've bumped into a couple of problems. I'll toss a snippet of code to help with the explanation.
I'd like to dynamically generate an XHTML checkbox via a JSP tag that takes in parameters and determines whether to build the element with the "checked" or "disabled" attributes. I thought I could get away with throwing some <c:if> tags around the <jsp:attribute> tag but it fails with a nullPointerException. Anyone know how to choose what attributes are added to a <jsp:element> tag?
I'd like to pass a bunch of parameters in the body of a tag, this was easy when I was making the JSP tags using class files but I'm not sure how to pull it off with JSP tag files. Any pointers to info on this would be swell.
Any ideas on how I could place dynamic info inside of a CDATA tag on my JSP tag file would be greatly appreciated. Since the tag files are themselves XML documents, the dynamic pieces do not get rendered.
Any help on these problems would be greatly appreciated, hopefully I'm not pushing to much in one post.
- Thanks all [ September 26, 2005: Message edited by: Chris Snapp ]
Joined: Nov 14, 2003
[ September 26, 2005: Message edited by: Chris Snapp ] [ September 26, 2005: Message edited by: Chris Snapp ]
May I ask why? This has come up a few times before. The XML syntax for JSP is meant to be used by the JSP containers as an intermediate format, or for machine-generated JSPs where it is useful to build up a DOM and serialize it, but it's certainly not meant as something humans should want to generate.