Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cannot find bean: "Element" in any scope

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.



 
Ranch Hand
Posts: 471
Mac OS X Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Many Thanks for reply..
This is my jsp....

still error is there

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
This error in stdout...when trying to connect to Database oracle 10g.

please help me sir???


 
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
hibernate.hbm.xml



Tutorial.java


Tutorial.hbm.xml


Thank you very much...
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic