You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ian Crossfield <ia...@dsl.pipex.com> on 2002/10/31 16:17:08 UTC
Newbie: Accessing form values
I expect it to be an obvious answer, but I'm just banging my head against the
desk now...
How do I go about accessing a parameter held within a form so that it can be
used by the logic tasks for comparison?
I.e. I have a form field called "currentPage", this has the appropriate get and
set methods within its form "EditDatabaseForm". I want to get at it several
times in tags similar to:
<logic:equal name="currentPage" value="1">
I suspect it's something to do with the <bean:stuts> or <bean:define> tag, but
I can't find a suitable example.
Thanks
Ian
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Newbie: Accessing form values
Posted by Ian Crossfield <ia...@dsl.pipex.com>.
Cheers - oh well its only half an hour till home time... :)
Quoting Xavier Combelle <xc...@kaptech.com>:
>
> just use
> <logic:equal name="editDatabaseForm" property="currentPage" value="1">
> where editDatabaseForm is the formBena's name as specified in
> struts-config.xml
>
> Regards,
> Xavier
>
> > -----Message d'origine-----
> > De : Ian Crossfield [mailto:ian.xfield@dsl.pipex.com]
> > Envoy� : jeudi 31 octobre 2002 16:17
> > � : struts-user@jakarta.apache.org
> > Objet : Newbie: Accessing form values
> >
> >
> >
> > I expect it to be an obvious answer, but I'm just banging my head
> > against the
> > desk now...
> >
> > How do I go about accessing a parameter held within a form so
> > that it can be
> > used by the logic tasks for comparison?
> >
> > I.e. I have a form field called "currentPage", this has the
> > appropriate get and
> > set methods within its form "EditDatabaseForm". I want to get at
> > it several
> > times in tags similar to:
> > <logic:equal name="currentPage" value="1">
> >
> > I suspect it's something to do with the <bean:stuts> or
> > <bean:define> tag, but
> > I can't find a suitable example.
> >
> > Thanks
> >
> > Ian
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Newbie: Accessing form values
Posted by Xavier Combelle <xc...@kaptech.com>.
just use
<logic:equal name="editDatabaseForm" property="currentPage" value="1">
where editDatabaseForm is the formBena's name as specified in
struts-config.xml
Regards,
Xavier
> -----Message d'origine-----
> De : Ian Crossfield [mailto:ian.xfield@dsl.pipex.com]
> Envoyé : jeudi 31 octobre 2002 16:17
> À : struts-user@jakarta.apache.org
> Objet : Newbie: Accessing form values
>
>
>
> I expect it to be an obvious answer, but I'm just banging my head
> against the
> desk now...
>
> How do I go about accessing a parameter held within a form so
> that it can be
> used by the logic tasks for comparison?
>
> I.e. I have a form field called "currentPage", this has the
> appropriate get and
> set methods within its form "EditDatabaseForm". I want to get at
> it several
> times in tags similar to:
> <logic:equal name="currentPage" value="1">
>
> I suspect it's something to do with the <bean:stuts> or
> <bean:define> tag, but
> I can't find a suitable example.
>
> Thanks
>
> Ian
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>