Re: Where are the logic: tags?
Thanks guys, I didn't know the c:forEach tag could be used that way. But now I've found a Struts related problem: according to the Struts taglib, the list attribute is obligatory for the s:select tag, therefore I can't use a inside s:param tag with a FOR loop to fill it. Thanx anyway :-) On 10/1/07, Chris Pratt [EMAIL PROTECTED] wrote: You should be able to use: c:forEach begin=1 end=10 var=ndx (*Chris*) On 10/1/07, Gabriel Belingueres [EMAIL PROTECTED] wrote: To use the s:select tag you need to somehow put the consecutive integers into a collection or Iterator. AFAIK there is no way to define this collection easily using OGNL or JSTL (something like comprehension lists in Haskell). 2007/10/1, Marcos Hernandez [EMAIL PROTECTED]: Thanks Cesar, but that's doesn't seems to be what I'm looking for. The c:forEach tag seems to have the same functionality that the s:iterate. What I need is a simple for, something to populate a s:select tag with a long list of consecutive integers, not with the values of a collection. Thanx anyway. On 10/1/07, Cesar Arevalo [EMAIL PROTECTED] wrote: Oh and by the way, the logic tag is gone, IMO the struts2 guys did not want to invent the wheel again. And also IMO the struts2 tags are more concise to the framework and overlap less with what is already out there, like jstl. -Cesar - Original Message From: Cesar Arevalo [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 1, 2007 12:32:10 AM Subject: Re: Where are the logic: tags? For iterating over a value you can use the struts2 tag s:iterator: http://struts.apache.org/2.x/docs/iterator.html , however if you want a foreach loop you could use fmtl tag c:forEach: http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html#bnakk HTH -Cesar - Original Message From: Marcos Hernandez [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 1, 2007 12:14:07 AM Subject: Where are the logic: tags? Hi guys Just today I found out that I miss them... Is there a way to create a for loop in Struts2? because I think a block of jsp code will not work there, what is required is a framework tag. Is the logic tag library gone? -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi - 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] -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi
Re: Where are the logic: tags?
Thanks Cesar, but that's doesn't seems to be what I'm looking for. The c:forEach tag seems to have the same functionality that the s:iterate. What I need is a simple for, something to populate a s:select tag with a long list of consecutive integers, not with the values of a collection. Thanx anyway. On 10/1/07, Cesar Arevalo [EMAIL PROTECTED] wrote: Oh and by the way, the logic tag is gone, IMO the struts2 guys did not want to invent the wheel again. And also IMO the struts2 tags are more concise to the framework and overlap less with what is already out there, like jstl. -Cesar - Original Message From: Cesar Arevalo [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 1, 2007 12:32:10 AM Subject: Re: Where are the logic: tags? For iterating over a value you can use the struts2 tag s:iterator: http://struts.apache.org/2.x/docs/iterator.html , however if you want a foreach loop you could use fmtl tag c:forEach: http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html#bnakk HTH -Cesar - Original Message From: Marcos Hernandez [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 1, 2007 12:14:07 AM Subject: Where are the logic: tags? Hi guys Just today I found out that I miss them... Is there a way to create a for loop in Struts2? because I think a block of jsp code will not work there, what is required is a framework tag. Is the logic tag library gone? -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi
Re: Where are the logic: tags?
To use the s:select tag you need to somehow put the consecutive integers into a collection or Iterator. AFAIK there is no way to define this collection easily using OGNL or JSTL (something like comprehension lists in Haskell). 2007/10/1, Marcos Hernandez [EMAIL PROTECTED]: Thanks Cesar, but that's doesn't seems to be what I'm looking for. The c:forEach tag seems to have the same functionality that the s:iterate. What I need is a simple for, something to populate a s:select tag with a long list of consecutive integers, not with the values of a collection. Thanx anyway. On 10/1/07, Cesar Arevalo [EMAIL PROTECTED] wrote: Oh and by the way, the logic tag is gone, IMO the struts2 guys did not want to invent the wheel again. And also IMO the struts2 tags are more concise to the framework and overlap less with what is already out there, like jstl. -Cesar - Original Message From: Cesar Arevalo [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 1, 2007 12:32:10 AM Subject: Re: Where are the logic: tags? For iterating over a value you can use the struts2 tag s:iterator: http://struts.apache.org/2.x/docs/iterator.html , however if you want a foreach loop you could use fmtl tag c:forEach: http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html#bnakk HTH -Cesar - Original Message From: Marcos Hernandez [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 1, 2007 12:14:07 AM Subject: Where are the logic: tags? Hi guys Just today I found out that I miss them... Is there a way to create a for loop in Struts2? because I think a block of jsp code will not work there, what is required is a framework tag. Is the logic tag library gone? -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: Where are the logic: tags?
c:forEach var=... begin=... end=... step=... --- Marcos Hernandez [EMAIL PROTECTED] wrote: Thanks Cesar, but that's doesn't seems to be what I'm looking for. The c:forEach tag seems to have the same functionality that the s:iterate. What I need is a simple for, something to populate a s:select tag with a long list of consecutive integers, not with the values of a collection. Thanx anyway. On 10/1/07, Cesar Arevalo [EMAIL PROTECTED] wrote: Oh and by the way, the logic tag is gone, IMO the struts2 guys did not want to invent the wheel again. And also IMO the struts2 tags are more concise to the framework and overlap less with what is already out there, like jstl. -Cesar - Original Message From: Cesar Arevalo [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 1, 2007 12:32:10 AM Subject: Re: Where are the logic: tags? For iterating over a value you can use the struts2 tag s:iterator: http://struts.apache.org/2.x/docs/iterator.html , however if you want a foreach loop you could use fmtl tag c:forEach: http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html#bnakk HTH -Cesar - Original Message From: Marcos Hernandez [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 1, 2007 12:14:07 AM Subject: Where are the logic: tags? Hi guys Just today I found out that I miss them... Is there a way to create a for loop in Struts2? because I think a block of jsp code will not work there, what is required is a framework tag. Is the logic tag library gone? -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the logic: tags?
You should be able to use: c:forEach begin=1 end=10 var=ndx (*Chris*) On 10/1/07, Gabriel Belingueres [EMAIL PROTECTED] wrote: To use the s:select tag you need to somehow put the consecutive integers into a collection or Iterator. AFAIK there is no way to define this collection easily using OGNL or JSTL (something like comprehension lists in Haskell). 2007/10/1, Marcos Hernandez [EMAIL PROTECTED]: Thanks Cesar, but that's doesn't seems to be what I'm looking for. The c:forEach tag seems to have the same functionality that the s:iterate. What I need is a simple for, something to populate a s:select tag with a long list of consecutive integers, not with the values of a collection. Thanx anyway. On 10/1/07, Cesar Arevalo [EMAIL PROTECTED] wrote: Oh and by the way, the logic tag is gone, IMO the struts2 guys did not want to invent the wheel again. And also IMO the struts2 tags are more concise to the framework and overlap less with what is already out there, like jstl. -Cesar - Original Message From: Cesar Arevalo [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 1, 2007 12:32:10 AM Subject: Re: Where are the logic: tags? For iterating over a value you can use the struts2 tag s:iterator: http://struts.apache.org/2.x/docs/iterator.html , however if you want a foreach loop you could use fmtl tag c:forEach: http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html#bnakk HTH -Cesar - Original Message From: Marcos Hernandez [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 1, 2007 12:14:07 AM Subject: Where are the logic: tags? Hi guys Just today I found out that I miss them... Is there a way to create a for loop in Struts2? because I think a block of jsp code will not work there, what is required is a framework tag. Is the logic tag library gone? -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi - 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]
Where are the logic: tags?
Hi guys Just today I found out that I miss them... Is there a way to create a for loop in Struts2? because I think a block of jsp code will not work there, what is required is a framework tag. Is the logic tag library gone? -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi
Re: Where are the logic: tags?
For iterating over a value you can use the struts2 tag s:iterator: http://struts.apache.org/2.x/docs/iterator.html , however if you want a foreach loop you could use fmtl tag c:forEach: http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html#bnakk HTH -Cesar - Original Message From: Marcos Hernandez [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 1, 2007 12:14:07 AM Subject: Where are the logic: tags? Hi guys Just today I found out that I miss them... Is there a way to create a for loop in Struts2? because I think a block of jsp code will not work there, what is required is a framework tag. Is the logic tag library gone? -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the logic: tags?
Oh and by the way, the logic tag is gone, IMO the struts2 guys did not want to invent the wheel again. And also IMO the struts2 tags are more concise to the framework and overlap less with what is already out there, like jstl. -Cesar - Original Message From: Cesar Arevalo [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 1, 2007 12:32:10 AM Subject: Re: Where are the logic: tags? For iterating over a value you can use the struts2 tag s:iterator: http://struts.apache.org/2.x/docs/iterator.html , however if you want a foreach loop you could use fmtl tag c:forEach: http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html#bnakk HTH -Cesar - Original Message From: Marcos Hernandez [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 1, 2007 12:14:07 AM Subject: Where are the logic: tags? Hi guys Just today I found out that I miss them... Is there a way to create a for loop in Struts2? because I think a block of jsp code will not work there, what is required is a framework tag. Is the logic tag library gone? -- - Marcos H. You must be the change you wish to see in the world ~ Gandhi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]