Justin Ashworth wrote: > > Thanks, but that's not quite what I'm trying to do. It is more like > this: > > <c:if test="condition"> > <html:form...> > </c:if> > ... JSP code ... > > <c:if test="condition"> > <!-- All form elements would be enclosed in this condition. --> > <html:text ...> > </c:if> > > ... JSP code ... > <c:if test="condition"> > </html:form> > </c:if>
Might sound silly, but why not > ... JSP code ... > > <c:if test="condition"> > <html:form...> > <!-- All form elements would be enclosed in this condition. --> > <html:text ...> > </html:form> > </c:if> > > ... JSP code ... Actually, that was my suggestion the first time. Why is the "... JSP code ..." so special so taht you have to put it inside the conditional form element? From your example it looks like you need "JSP code" evaluated every time, so put it before and after the conditional form (if you can, of course). > I may end up subclassing HtmlForm to do what I need to do. If condition > evaluates to true, I would still evaluate the JSP body, but I wouldn't > print the start and end tags. It shouldn't be too hard. > This seems like a limitation of JSP > and/or Struts... > JSP's limitations, I'd say, since JSP needs to be a valid xml document. Regards, Davor -- [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

