would it work to just leave the form tag in there at all times and simply be conditional regarding the fields? The empty form shouldn't cause any problems that I can see.
> -----Original Message----- > From: Justin Ashworth [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 06, 2003 4:19 PM > To: [EMAIL PROTECTED] > Subject: Conditional forms > > > 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 >

