File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
Don't get me started about those stupid light bulbs.
subject: Need help for Displaying in jsp
Similar Threads
Validator framework vs JBoss issue.
Capturing JSP Content Within My Strut Action Servlet
Need help with Validation.xml
Spring Aspects not working in Struts 2
org.apache.struts2.dispatcher.Dispatcher serviceAction Could not find action or result