You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by draegoon Z <dr...@hotmail.com> on 2005/03/03 01:56:47 UTC

tiles definition overload

if I do this:

<tiles-definitions>

        <definition name="someTile" path="/tiles/SOME_TILE.jsp">
            <put name="var1" value="10" />
        </definition>

</tiles-definitions>

and then:

<tiles:insert definition="someTile">  (or is it beanName?)
     <tiles:put name="var1" value="5" />
</tiles:insert>

what will be the value of var1? Or will this work at all?
I basically want a default value in the definition, but a way to change the 
value in a JSP page.



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


Re: tiles definition overload

Posted by Daniel PC Leung <pc...@gmail.com>.
The email name of Jonathan "wo_shi_ni_ba_ba" means "I am your father".
Is it appropriate to be on list and let other "child" to answer
Jonathan's question?

On Wed, 2 Mar 2005 17:31:21 -0800 (PST), Jonathan M Z
<wo...@yahoo.com> wrote:
> It will be 5. You can overwrite the value of the var
> in your jsp page.  if you don't specify var1 in your
> jsp, it defaults to 10
> 
> --- draegoon Z <dr...@hotmail.com> wrote:
> 
> > if I do this:
> >
> > <tiles-definitions>
> >
> >         <definition name="someTile"
> > path="/tiles/SOME_TILE.jsp">
> >             <put name="var1" value="10" />
> >         </definition>
> >
> > </tiles-definitions>
> >
> > and then:
> >
> > <tiles:insert definition="someTile">  (or is it
> > beanName?)
> >      <tiles:put name="var1" value="5" />
> > </tiles:insert>
> >
> > what will be the value of var1? Or will this work at
> > all?
> > I basically want a default value in the definition,
> > but a way to change the
> > value in a JSP page.
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> >
> >
> 
> __________________________________
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
> http://birthday.yahoo.com/netrospective/
> 
> ---------------------------------------------------------------------
> 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


Re: tiles definition overload

Posted by Jonathan M Z <wo...@yahoo.com>.
It will be 5. You can overwrite the value of the var
in your jsp page.  if you don't specify var1 in your
jsp, it defaults to 10


--- draegoon Z <dr...@hotmail.com> wrote:

> if I do this:
> 
> <tiles-definitions>
> 
>         <definition name="someTile"
> path="/tiles/SOME_TILE.jsp">
>             <put name="var1" value="10" />
>         </definition>
> 
> </tiles-definitions>
> 
> and then:
> 
> <tiles:insert definition="someTile">  (or is it
> beanName?)
>      <tiles:put name="var1" value="5" />
> </tiles:insert>
> 
> what will be the value of var1? Or will this work at
> all?
> I basically want a default value in the definition,
> but a way to change the 
> value in a JSP page.
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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