You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jeff Born <jb...@charter.net> on 2003/02/26 04:48:50 UTC
html-el:link and logic-el:iterate and tiles --- Just a simple question.
I would like the html-el:link to produce
<A href=<%=request.getContextPath()%><jsp:getProperty name="item"
property="link"/>><jsp:getProperty name="item" property="value"</A>
I would like in to work with the iterate tag. But so far I am not
getting it to work.
<logic-el:iterate id="item" name="items.footer"
type="org.apache.struts.tiles.beans.MenuItem" >
<td>
<html-el:link paramName="item" paramProperty="value"/>
</td>
</logic-el:iterate>
Any insight would be greatly appreciated,
Jeff Born
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: html-el:link and logic-el:iterate and tiles --- Just a simple question.
Posted by Jeff Born <jb...@charter.net>.
Thanks that was what I was missing...
I ended up with: <html-el:link page="${item.link}" ><jsp:getProperty
name="item" property="value"/></html-el:link>
Last questions is the jsp:getProperty needed? I was hoping to find a
<html-el:link /> implementation that Produced <A>produced text</A>.. Is
that possible?
Second question is how do I test for the last instance of item within
the iterate tag?
Thanks for all the insight as all ways,
Jeff Born.
-----Original Message-----
From: Ray Madigan [mailto:ray@madigans.org]
Sent: Wednesday, February 26, 2003 2:06 AM
To: Struts Users Mailing List
Subject: RE: html-el:link and logic-el:iterate and tiles --- Just a
simple question.
I would check to see if items.footer an attribute in some scope
and it has a collection bound to it.
Also, the id="item": item is an instance of the current iteration
not a string. In the link paramName="item" should be item.someMethod ( )
that returns a string. and i suspect that paramProperty="value" might
be something like paramProperty="item.value" which calls the getValue (
)
method on instance.
I hope this helps
Ray Madigan
-----Original Message-----
From: Jeff Born [mailto:jborn@charter.net]
Sent: Tuesday, February 25, 2003 7:49 PM
To: 'Struts Users Mailing List'
Subject: html-el:link and logic-el:iterate and tiles --- Just a simple
question.
I would like the html-el:link to produce
<A href=<%=request.getContextPath()%><jsp:getProperty name="item"
property="link"/>><jsp:getProperty name="item" property="value"</A>
I would like in to work with the iterate tag. But so far I am not
getting it to work.
<logic-el:iterate id="item" name="items.footer"
type="org.apache.struts.tiles.beans.MenuItem" >
<td>
<html-el:link paramName="item" paramProperty="value"/>
</td>
</logic-el:iterate>
Any insight would be greatly appreciated,
Jeff Born
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: html-el:link and logic-el:iterate and tiles --- Just a simple question.
Posted by Ray Madigan <ra...@madigans.org>.
I would check to see if items.footer an attribute in some scope
and it has a collection bound to it.
Also, the id="item": item is an instance of the current iteration
not a string. In the link paramName="item" should be item.someMethod ( )
that returns a string. and i suspect that paramProperty="value" might
be something like paramProperty="item.value" which calls the getValue ( )
method on instance.
I hope this helps
Ray Madigan
-----Original Message-----
From: Jeff Born [mailto:jborn@charter.net]
Sent: Tuesday, February 25, 2003 7:49 PM
To: 'Struts Users Mailing List'
Subject: html-el:link and logic-el:iterate and tiles --- Just a simple
question.
I would like the html-el:link to produce
<A href=<%=request.getContextPath()%><jsp:getProperty name="item"
property="link"/>><jsp:getProperty name="item" property="value"</A>
I would like in to work with the iterate tag. But so far I am not
getting it to work.
<logic-el:iterate id="item" name="items.footer"
type="org.apache.struts.tiles.beans.MenuItem" >
<td>
<html-el:link paramName="item" paramProperty="value"/>
</td>
</logic-el:iterate>
Any insight would be greatly appreciated,
Jeff Born
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org