reset password
Author Message
abhishek_sharma
Posts: 79
Posted 17:21 May 03, 2009 |

Hi all,

I have some strange error, trying to solve that from past few hours but all efforts are in vain, please give some suggesstion

Blog Class:

private int intBlogId;  

private String strBlogTitle;

 

private String strBlogDescription; private String strImgBanner; private User BlogOwner; private int intBlogEntries;

 

 

 

viewBlogs.html

[Edited by cysun. Code Removed. Please don't post complete code again.]

Error:

org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/jsp/blog/viewBlogs.jsp at line 12


12: <display:column title="Blog Owner">${b.BlogOwner.username}</display:column>

root cause

javax.el.PropertyNotFoundException: Property 'BlogOwner' not found on type csns.model.blog.Blog

But property 'BlogOwner' is still present in th Blog Class

Last edited by cysun at 17:27 May 03, 2009.
cysun
Posts: 2935
Posted 17:25 May 03, 2009 |

blogOwner, not BlogOwner. Remember the bean property naming conventions.

abhishek_sharma
Posts: 79
Posted 17:29 May 03, 2009 |

it worked !!! Smile

Thank You Professor