Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JSP and the fly likes Need help for Displaying in jsp 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 » Java » JSP
Bookmark "Need help for Displaying in jsp" Watch "Need help for Displaying in jsp" New topic

Need help for Displaying in jsp

Philip Zac
Ranch Hand

Joined: Apr 27, 2008
Posts: 66
Hello all Appfusers,

I am practically a newbie in this field.

I just got an error given below:


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 .

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

It looks like you're trying to read a property named "username" from an object or map that doesn't have a username field.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Philip Zac
Ranch Hand

Joined: Apr 27, 2008
Posts: 66
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....

Philip Zac
Ranch Hand

Joined: Apr 27, 2008
Posts: 66
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.
subject: Need help for Displaying in jsp
Similar Threads
org.apache.struts2.dispatcher.Dispatcher serviceAction Could not find action or result
Need help with Validation.xml
Validator framework vs JBoss issue.
Capturing JSP Content Within My Strut Action Servlet
Spring Aspects not working in Struts 2