You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Cedric Dumoulin <ce...@apache.org> on 2003/02/08 20:35:47 UTC

Re: and tag

  Hi,

  But where do you declare objects in the config file ? If we enable 
someting like beanName="someBean" in the config file, where does the 
bean should come from ?

   Cedric

Frank Kim wrote:

>I have a quick question regarding the difference in terms of functionality between <put> tag and <tiles:put> tag, with <tiles:put> tag, you can pass objects through beanName attribute
>example:
>
>foo.jsp
><jsp:useBean .. name="someBean"/>
>
><tiles:insert definition="bar">
>  <tiles:put name="list" beanName="somebean"/>
>
>However with the <put> tag, you can only pass string, page, template or definitions.  Is there a good reason for this difference?  The only way to pass objects in separate XML file is through the <putList> tag, which baffles me since there might be instances where I want to define a simle attribute to contain an Object, is there a plan to create something like:
>
><definition name="foo.bar">
>  <putObject name="topMenuItem" type="org.apache.struts.tiles.beans.SimpleMenuItem" 
>		 value="Click me" link="foo.bar"/> ..
>
>
>Thanks in advance.
>
>Frank
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>  
>


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