Win a copy of Functional Reactive Programming this week in the Other Languages forum!
    Bookmark Topic Watch Topic
  • New Topic

Cannot find bean: "Element" in any scope

 
Y Jadhav
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Y Jadhav
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Report post to moderator
Many Thanks for reply..
This is my jsp....

still error is there

 
rakesh kumar nampally
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Report post to moderator
This error in stdout...when trying to connect to Database oracle 10g.

please help me sir???


 
Srinivasa Kadiyala
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi

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
Posts: 37
  • Mark post as helpful
  • send pies
  • Report post to moderator
hibernate.hbm.xml



Tutorial.java


Tutorial.hbm.xml


Thank you very much...
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
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

Mark
 
    Bookmark Topic Watch Topic
  • New Topic