• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

urgent: Please help: logic:iterate tag

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can somebody please help me with logic:iterate tag....Here's a peice of my code....it doesnot seem to work....
<logic:iterate id="search" name="genSearchForm" property="mfrnames" >
<tr>
<td align="left">
<bean:write name="search" property="mfrname" />
</td>
</tr>
 
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
HTH
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
World domination requires a hollowed out volcano with good submarine access. Tiny ads are optional.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic