struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nuwan Chandrasoma <nuw...@gmail.com>
Subject Re: How can I "parameterize" include files?
Date Wed, 17 Dec 2008 18:01:01 GMT
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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message