Hi, (using 6.0.16)
I want to create a jsp that is able to be seen in a browser without
using tomcat (a simple HTMLish preview) in addition to using (rendering)
it with tomcat.
The kicker is I *need* the JSP to be well-formed XML.
The problems are elements that contain HTML attributes held over from
SGML like checked="checked".
Of course this can be worked around by using a custom namespaced tag,
but I need the page to be 'previewable.'
First, is there a way to indicate to Jasper (or whatever) to remove an
HTML attribute? For example:
<input type="checkbox" checked="${isChecked ? "checked" :
somefunc:removeAttribute()}"/>
If not, I have a somewhat ugly hack:
<input type="radio" name="bubba" title="Blah${true ? '"
checked="checked' : ''}"/>
which produces:
<input title="Blah" checked="checked" name="bubba" type="radio">
What I am worrying about is if, though ugly, it is going to be
problematic. Do you see any problems with this hack?
Is there a better way?
Thanks,
-Rob
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]