Actually, that's what I tried at first but then I realized that I would
need a default form, and I would have to define that "dummy" form.  To
me, this seemed more like a kludge than a solution.  Is there a way to
keep that form tag in there without having to define a dummy form?

> -----Original Message-----
> From: Miller, Jason [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, February 06, 2003 4:50 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Conditional forms
> 
> 
> 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
> > 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to