I am looking for a conditional form where I want to display a certain
<html:form> ( the form will have normal html tags also) based upon some
condition
like if the object is not null
I don't know if that is possible.
Vinay
----- Original Message -----
From: "Justin Ashworth" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 06, 2003 4:18 PM
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]