Sanjay-
Provided you would be willing to provide the parameters for creating your bean (e.g. shared singleton or per instance)
Have you look at implementing spring-beans?
http://www.springframework.org/docs/reference/springbeansdtd.html
Anyone else ?
Martin-
----- Original Message ----- From: "Sanjay Sharma" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Wednesday, October 05, 2005 11:32 AM
Subject: Tiles - dynamic attribute values with XML deinitions


Tiles allows us to specify attribute values at run time in a JSP
definition. For example, I can use the following

<tiles:put name="title" beanName="myBean" beanProperty="myProperty"/>

to specify title at runtime by setting the myProperty attribute of myBean.

However, I am using XML for defining tiles and would like to do the
equivalent of what I can do using JSP definition. The following
fragment in DTD only has name and value attributes, no beanName and
beanProperty. So how can I set values at runtime.

<!ATTLIST put              id               ID              #IMPLIED>
<!ATTLIST put              content          CDATA           #IMPLIED>
<!ATTLIST put              direct           %Boolean;       #IMPLIED>
<!ATTLIST put              name             CDATA           #REQUIRED>
<!ATTLIST put              type             %ContentType;   #IMPLIED>
<!ATTLIST put              value            CDATA           #IMPLIED>


--
Sanjay Sharma

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to