This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data not able to get in the jsp page

 
vamsi nani
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used the logic iterate in a jsp file , I am not able to get the details from the data base, I am getting the jsp page with out data , can any one tell ehat might be the error





<logic:iterate id="pp" name="parentProduction" indexId="index">
<tr>
td width="5%" class="bluebg">
<bean:write name="pp" property="xybad_Jan"/><br/></td>
</tr>
</logic:iterate>
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The parentProduction collection is probably empty. The problem is most likely not with the JSP. You need to debug the code in your action class that is supposed to populate the parentProduction collection and put it in some scope, such as request or session. Use System.outprintln() statements or a debugger to help you figure out what is going wrong.
 
vamsi nani
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot , I got it cleared
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic