Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logic:iterate and html:form problem with indexed properties

 
Janis Olex
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to struts documentation (good example what happens when coders write documentation for themself) I can use "indexed" attribute inside logic:iterate and thus "iterate" through my actionForm indexed properties, but NOWEHERE (don't send me to that struts FAQ) is any example of how to "link" those properties!
Okey here is example
actionFormBean name in request namespace is "actionFormBean", it has collection (List) of "Skills" beans... each SkillBean has 3 properties... name, level, description
So how do I arragne <logic:iterate> and whate EXACTLY I have to write into <html:text> tag to get listed all the Skill beans with all their properties!
And one more time don't send me to http://jakarta.apache.org/struts/faqs/indexedprops.html page as there is answer to anything but this. Answer on this question there is only brief and in way "you should guess what I meant by this".
People... when coding open source please write documentation for dummies not for developers who participated in the project themselves!
Thanks!
 
Junilu Lacar
Bartender
Pie
Posts: 7768
62
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Janis,
Please post the relevant sections from your JSP and ActionForm. It'll be easier to see what might be problem. Thanks.
Re Open Source: it's true that documentation is often lacking but I think that the Struts documentation is not that bad at all. Also, there are a lot of examples out on independent websites. Sometimes all you need to find the answer is a good search engine and some patience and perseverence
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic