are you try <s:set/> tag, to set the value you need and then test it?

i understand, <s:include> tag only join both pages, but not get the result
in ajax like fashion.

http://struts.apache.org/2.0.9/docs/set.html

2008/12/17 James Carr <james.r.c...@gmail.com>

> I have.. .it doesnt evaluate correctly in the <s:if> statement. Adding
> the param isn't my problem in this case though, it's making <s:if
> test="$param.foo"> work.. I've tried every possible combination...
> "param.foo", "$param.foo", "${param.foo}" etc. The variable IS there,
> the if statement just chooses not to allow it to just work... I  had
> to use a jakarta if tag to eval it.
>
> Thanks,
> james
>
> On Wed, Dec 17, 2008 at 12:01 PM, Nuwan Chandrasoma <nuw...@gmail.com>
> wrote:
> > http://struts.apache.org/2.x/docs/include.html
> >
> > why don't you try to assess it as a request param?. :)
> >
> > Thanks,
> >
> > Nuwan
> >
> > James Carr wrote:
> >>
> >> Hi all,
> >>
> >> I have a common navigation bar I have at the top of a bunch of pages,
> >> but I'd like for certain buttons to not be present on some pages. I
> >> tried using <s:param> and <s:if> , but to no avail.
> >>
> >> For example:
> >>
> >>        <s:include value="includes/something.jsp" >
> >>                <s:param name="foo" value="true"/>
> >>        </s:include>
> >>
> >> and in the included file have this:
> >> <s:if test="foo">
> >> <!-- content -->
> >> </s:if>
> >>
> >> However this doesn't seem to work. For now I've resorted to use the
> >> jakarta taglibs for conditional statements, but I'd rather use the
> >> struts2 tags.
> >>
> >> Thanks,
> >> James
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Thanks,
Oscar

Reply via email to