Hi. Since this forum focuses mostly on running and configuring Tomcat, you 
might get more help at javaranch.com.

>>> Robert Koberg <[EMAIL PROTECTED]> 3/29/2008 9:48 PM >>>
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 ? '&quot;
checked=&quot;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: users@tomcat.apache.org 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


Any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Employees of Easter 
Seals-Goodwill Northern Rocky Mountain are expressly required not to make 
defamatory statements and not to infringe or authorize any infringement of 
copyright or any other legal right by email communications. Any such 
communication is contrary to company policy and outside the scope of the 
employment of the individual concerned. The company will not accept any 
liability in respect of such communication, and the employee responsible will 
be personally liable for any damages or other liability arising. 
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited. 
Please report any inappropriate or abusive use of this email system to [EMAIL 
PROTECTED]

Reply via email to