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

Reply via email to