Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Struts
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 13th, 2006, 06:05 AM
Registered User
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem while using <logic:iterate> tag

hi,
I am new to struts.........
I am having one problem while trying to use <logic:iterate> tag inmy jsp

i am using it as follows:-
<logic:iterate id ="listvo" name="users">
    <tr>
    <td>
        <bean:write name="listvo" property="firstname"/>
    </td>
    </tr>
</logic:iterate>

what i am doing is setting one ArrayList in request scope and in that arraylist i am adding one object of
a class "uservo" in which there are some properties like:-firstname,lastname etc of user

what i am getting error is that:--
org.apache.jasper.JasperException: Cannot find bean: "listvo" in any scope

Please give me any possible solutions


thank you

 
Old March 21st, 2007, 02:57 AM
Registered User
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

check if the collection is being returned..?

 
Old April 26th, 2007, 04:53 AM
Registered User
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Check what is the scope you mentioned corresponding to that action, in struts config.xml

 
Old April 26th, 2007, 04:58 PM
Registered User
 
Join Date: Mar 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

org.apache.jasper.JasperException means its a null value exception, it means the "listvo" object is null set the value in the session/request in Actionclass then u can access the value.

 
Old April 26th, 2007, 11:27 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

Check whether the listvo bean is available in the jsp file. Does that bean is in some package structure if it is you have to import it first and use it or give the complete package structure in the id attribute.

Regards,
Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
<img Tag problem> sen321x .NET Framework 2.0 1 October 30th, 2007 07:47 AM
Problem with <span> tag tclotworthy XSLT 2 February 18th, 2007 03:48 PM
problem while using <logic:iterate> tag be_sandip BOOK: Professional Jakarta Struts 0 November 13th, 2006 08:05 AM
Is anybody tell me how to iterate <asp:Checkbox> a frmsasp ASP.NET 2.0 Professional 2 October 12th, 2005 10:05 AM
Is anybody tell me how to iterate <asp:Checkbox> a frmsasp All Other Wrox Books 0 October 7th, 2005 11:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.