I actually thought you couldn't nest <s:*> tags. You can nest them in regular HTML tags because the JSP and the HTML are interpreted at different steps, so from the separate perspectives of the two parsers there's not really any nesting going on (the JSP parser on the server only cares about JSP tags, and the HTML parser on the browser only sees the output).
Perhaps instead you could use an OGNL expression to concatenate the ID onto the end of a string constant? ~DVA -----Original Message----- From: matthieu martin [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 10:20 AM To: user@struts.apache.org Subject: <s:property in <s:*> not interpreted Hi all ! I have a little issue and I find no clues on the web, so i'm turning myself to you. I have a piece of code like this : <div id="menu_image_gallerys<s:property value='id'/>"> <s:property id="<s:property value='id'/>" value="id"/> <s:a theme="ajax" href="%{EditImageGallery}" targets="dataImageDiv<s:property value='id'/>">Edit</s:a> <s:a theme="ajax" href="%{MoveImageGallery}" targets="dataImageDiv<s:property value='id'/>">Move</s:a> <s:a theme="ajax" href="%{copyImageGallery}" targets="dataImageDiv<s:property value='id'/>">Copy</s:a> </div> <div id="dataImageDiv<s:property value='id'/>" /> this piece of code is placed in a loop, and creates a small menu for each images I have in galleries. The dataImageDiv is used to contain whatever form I need. The problem is that my <s:property> tags contained in my <s:a> tags aren't interpreted. After few manipulations, I observed that the <s:property> tag is interpreted only if it's not contained in a struts tag. For instance : <div id="dataImageDiv<s:property value='id'/>" /> produces <div id="dataImageDiv1" /> BUT <s:div id="dataImageDiv<s:property value='id'/>" /> produces <div id="dataImageDiv<s:property value='id'/>" /> Thus, my piece of code produces : <div id="menu_image_gallerys1"> 1 <s:a theme="ajax" href="%{EditImageGallery}" targets="dataImageDiv<s:property value='id'/>">Edit</s:a> <s:a theme="ajax" href="%{MoveImageGallery}" targets="dataImageDiv<s:property value='id'/>">Move</s:a> <s:a theme="ajax" href="%{copyImageGallery}" targets="dataImageDiv<s:property value='id'/>">Copy</s:a> </div> <div id="dataImageDiv1/> As I'm using this in a loop, it's obviously not working, the targets and the divs not matching. This is driving me nuts. Do I do something wrong ? Would you have an idea ? The <s:head theme="ajax"/> is well included in my header. Thanks in advance, Matthieu -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP"). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]