File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Cannot find bean: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Reply locked New topic

Cannot find bean: "Element" in any scope

Y Jadhav
Ranch Hand

Joined: Oct 02, 2008
Posts: 37
Hello sir , This error making me....
Please help solve it.
When i try to load jsp in browser , i get this error, I am using struts, hibernate and oracle 10g DB.

Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 471

The <bean:write> tag is looking for an attribute called "Element" and cannot find it. Make sure that the action that maps to the JSP you're using adds this "Element" attribute to the request object.

Visit my blog:
Y Jadhav
Ranch Hand

Joined: Oct 02, 2008
Posts: 37
Many Thanks for reply..
This is my jsp....

still error is there

rakesh kumar nampally
Ranch Hand

Joined: Feb 03, 2007
Posts: 46
Generally we use formname in the place where you used element if i am right. If you are still using element(it may be some object) there some where above the usage you need to declare that using <bean efine>.
Y Jadhav
Ranch Hand

Joined: Oct 02, 2008
Posts: 37
This error in stdout...when trying to connect to Database oracle 10g.

please help me sir???

Srinivasa Kadiyala
Ranch Hand

Joined: Jun 10, 2004
Posts: 237

The error seems there is no table you are mapping.

Could you post here your..
1) hibernate mapping xml file
2) Persistence class(Bean that is used to map columns)
3) Your SQL proc(if you are using)

Y Jadhav
Ranch Hand

Joined: Oct 02, 2008
Posts: 37


Thank you very much...
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Closing this thread now, first because it is in the wrong forum. Your first question was about JSP and we have a JSP forum for that.

Now you are asking a Hibernate ORM question, and we have an ORM forum for those questions. On top of that you started a brand new thread with the exact same question, so this is now a duplicate thread.

Please read the link in my signature about posting at JavaRanch.

Thanks and good luck


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Cannot find bean: "Element" in any scope
It's not a secret anymore!