Because "#this" is mapped to the top of the stack? (It's marginally more complicated than that; "#this" means "the current object", which depends on context. It pops up in projections as well.)
Could be wrong, though. Dave --- On Mon, 6/16/08, Bruno Cavestro <[EMAIL PROTECTED]> wrote: > From: Bruno Cavestro <[EMAIL PROTECTED]> > Subject: differences btw <s:property\> and <s:property value="#this"/> > To: "Struts Users Mailing List" <user@struts.apache.org> > Date: Monday, June 16, 2008, 11:49 AM > Hy > Given the two pieces of codes can you explain me how can i > get same output? > A: > <s:iterator value="myList"> > <s:property /><br> > </s:iterator> > This produces correctly the following > John<br> > Steve<br> > > B: > <s:iterator value="myList" > > <s:property > value="#this"/><br> > </s:iterator> > And this produces > [John, [EMAIL PROTECTED], > [EMAIL PROTECTED]<br> > [Steve, [EMAIL PROTECTED], > [EMAIL PROTECTED]<br> > > > given that myList is an arraylist containing Strings.... > > > Thanx > > > --------------------------------------------------------------------- > 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]