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

urgent: Please help: logic:iterate tag

Dolly Patel

Joined: Nov 25, 2002
Posts: 4
can somebody please help me with logic:iterate tag....Here's a peice of my doesnot seem to work....
<logic:iterate id="search" name="genSearchForm" property="mfrnames" >
<td align="left">
<bean:write name="search" property="mfrname" />
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 567
There are many things that can go wrong with taglibs. From your tag, it seems OK.
However your beans might not be correct. What sort of error or problem do you have?
Also it is important to name your beans according to the Javabean Specification. It might not be the problem, but is the property mfrnames associated with bean getter and setters called getMfrnames() and setMfrnames()?
Normally you would use getMfrNames(), with the first letter of each real word capitalized.

I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
Anitha Lingam
Ranch Hand

Joined: Apr 21, 2002
Posts: 38
Please specify what kind of problem you are getting.
Please check the following
1.Spcify your bean with the type attribute in the logic:iterate start tag
2.What is the scope of your genSearchForm.Request/Session?
Specify it with your scope attribute.
3.Have you given the closing tag </logic:iterate>
I agree. Here's the link:
subject: urgent: Please help: logic:iterate tag
It's not a secret anymore!