This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Cannot find bean in any scope - Problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cannot find bean in any scope - Problems " Watch "Cannot find bean in any scope - Problems " New topic
Author

Cannot find bean in any scope - Problems

jferreira jferreira teste
Greenhorn

Joined: Jan 11, 2010
Posts: 5
Hi Everyone,

I've seen this error posted several times, but I haven't been able to resolve it. I'm trying to get a tutorial to work without much success. The error I'm getting is "Cannot find bean book in any scope". Can someone please take a look at this and let me know what the problem might be. I appreciate any and all responses.

***CLIST.jsp****

****** Action Class *******

**************Auction FOrm **************************

**************Error *******************


javax.servlet.ServletException: Cannot find bean: "Contact2List" in any scope
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:495)
at org.apache.jsp.CLIST_jsp._jspService(CLIST_jsp.java:146)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java


Thank you for any help you can provide.

João
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Please Use Code Tags when you post a source code. That way your code looks formatted. Unformatted code is hard to read. You can add code tags by wrapping your code in [code] [/code] tags. You can edit your message using button and then add code tags to it.

In your Action declaration, you have name="Contact2ListForm" and in your logic:iterate tag, you are using the name name="Contact2List"...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cannot find bean in any scope - Problems
 
Similar Threads
No getter method for property - Problem
Cannot find bean in any scope
Hidden variable
Struts: No getter method for property name problem
struts example -output not display