File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes logic:iterate and html:form problem with indexed properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logic:iterate and html:form problem with indexed properties" Watch "logic:iterate and html:form problem with indexed properties" New topic

logic:iterate and html:form problem with indexed properties

Janis Olex

Joined: Aug 21, 2003
Posts: 12
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 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!

-----<br />Programmers are tools to convert cofein into code.
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

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

Junilu - [How to Ask Questions] [How to Answer Questions]
I agree. Here's the link:
subject: logic:iterate and html:form problem with indexed properties
It's not a secret anymore!