Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Need help for Displaying in jsp

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all Appfusers,

I am practically a newbie in this field.

I just got an error given below:

Error:




Using log.debug, I got this




I am using customized User and Role classes.

Here is my daoHibernate:






And my jsp page







I hope I have made my errors clear to you. I hope someone will help me .

Cheers,
PHilip
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like you're trying to read a property named "username" from an object or map that doesn't have a username field.
 
Philip Zac
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ben,

Thanks for the reply. But I think I did everything going correctly. Because I use the User class with the attributes username. see below:



I hope I am correct....

Thanks,
Philip
 
Philip Zac
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the problem solved.....whewwwwwwwwwwwwwwwwwww!!!


Here is my OLD daoHibernate:


---------------------------

Here is my New daoHibernate:



-----------------------------

and the Named Query just above the User class is given below :---


------------

Anyway, Thanks Ben for pointing the error. I guess my SQL query is not good when using createQuery. It is easier to check out the query using MySQL and then put it in the name query......

Well Thanks once again,

your little Greenhorn.
Philip
 
    Bookmark Topic Watch Topic
  • New Topic