Hi all,
Using Struts, is there a slick way of creating a form based on some condition? I have
a generic JSP to display a certain type of data, and this data may in some cases
contain form fields. In those cases I need to enclose the form fields within a <form>
tag. However, I haven't found a way of doing this that's parseable. If the
<html-el:form> tag had a "test" condition, this would work great. Has anybody run
into this and found a fix?
Here is essentially what I'm trying to do (although this obviously doesn't work)...
<c:if test="something">
<html-el:form ...>
</c:if>
<!-- Bunch of JSP code here. Form tags will only be used on the same "something"
condition as above. -->
<c:if test="something">
</html-el:form>
</c:if>
Thanks,
Justin