I think this works for me but there is no

<logic:notEmpty> in struts-logic-el.tld


I visualize it for my case

<logic notEmpty  name="JavaBean">

<html-el:form>

Jsp Code


</html-el:form>
</logic:notEmpty>

but i am looking for an equivalent in struts-logic-el or c.tld or c-rt.tld


Thanks

Vinay




Thanks

Vinay


----- Original Message -----
From: "Justin Ashworth" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 06, 2003 4:42 PM
Subject: Re: Conditional forms


> Wouldn't that present the same problem as <c:if>?  My understanding of the
> JSP parser is that it is invalid to start a tag within another and not
close
> it before the parent tag is closed.  With logic:empty I would have...
>
> <logic:empty property="something">
>    <html-el:form ...>
> </logic:empty>
>
>     <!-- Bunch of JSP code here.  Form tags will only be used on the same
> "something" condition as above. -->
>
> <logic:empty property="something">
>    </html-el:form>
> </logic:empty>
>
> It's entirely possible and somewhat likely that I'm misunderstanding your
> suggestion.  If so, let me know.  Otherwise - any other ideas?
>
> Thanks,
>
> Justin
>
> ----- Original Message -----
> From: "Ken Anderson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, February 06, 2003 4:32 PM
> Subject: Re: Conditional forms
>
>
> > I think you want to use the logic:empty tag. Follow the link for the
> documentation.
> > -ken
> > http://jakarta.apache.org/struts/userGuide/struts-logic.html#empty
> >
> > >>> [EMAIL PROTECTED] 02/06/03 03:26PM >>>
> >  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]
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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

Reply via email to