iterator with only an int as input value

2007-09-16 Thread Vo Van Thuong
Hi, i'm wondering if there is anyway to use s:iterator like this: s:iterator value={1..pagesNum} s:property value=top/ /s:iterator should be the same as below, if pagesNum=5: s:iterator value={1,2,3,4,5} s:property value=top/ /s:iterator Thanks,

iterator tag with only an int as input value

2007-09-16 Thread Vo Van Thuong
Hi, i'm wondering if there is anyway to use s:iterator like this: s:iterator value={1..pagesNum} s:property value=top/ /s:iterator should be the same as below, if pagesNum=5: s:iterator value={1,2,3,4,5} s:property value=top/ /s:iterator Thanks,

Re: struts 2.0.9 with the dynamic tree

2007-09-17 Thread Vo Van Thuong
Hi, I also had the same problem, and have found the solution: + create a new folder named ajax under folder template (template has same level as WEB-INF and put the attached file tree.ftl in that folder (template\ajax\tree.ftl) + try this new function, in which parameter nodeId is

Struts URLs for perfectionists like Ebay's URLs

2007-09-19 Thread Vo Van Thuong
Hi, I'm very interested in Ebay's Urls, would someone pls give me some ideas about Ebay's Urls. why they do that and can i also make my Urls like Ebay's? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Struts URLs for perfectionists like Ebay's URLs

2007-09-20 Thread Vo Van Thuong
Hi Vinny, I'd like users to access to my website by URLs like Ebay's: http://listings.ebay.com/_W0QQcoactionZcompareQQcoentrypageZsearchQQcopagenumZ1QQfromZR2QQftrtZ1QQftrvZ1QQsabfmtsZ1QQsacatZQ2d1QQsaobfmtsZinsifQQsocmdZListingCategoryList In which we can't see which one is get parameters which

Re: Struts URLs for perfectionists like Ebay's URLs

2007-09-25 Thread Vo Van Thuong
Here is another approach suggested by Peter Hilton. On 20 Sep 2007, at 06:37, Vo Van Thuong wrote: I've just read your article at http://www.lunatech-research.com/archives/2005/07/29/struts-urls, and i find it very useful for me. I'm glad if it helps you. would you pls give me some idea

Re: Struts URLs for perfectionists like Ebay's URLs

2007-10-04 Thread Vo Van Thuong
Hi, Vinny i also try urlrewrite but cannot get it work with struts 2's action, only work with static html files. would you pls give give me some sample app or guides to have my urls go from this : /myAction.do?p1=v1p2=v2 to /myAction/p1,v1/p2,v2/ best regards, -