facebook

Hibernate Problum

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #218020 Reply

    eswearg
    Member

    Hi!
    Iam new to struts,iam learing struts using myeclips.i was going through the Hibernate demo recording and made a BasicDB project.
    so for everything is fine.when i run the project iam getting a message like <vipdatas no bean found>.can any one plz tell me how do i can sort it out.
    where do i can set <vipdatas>.
    –>in AddUserData.jsp[AddVipData.jsp].
    code is:
    <<–!
    List usersList= UsersService.getInstance().getUsersList();
    request.setAttribute(“vipdatas”,usersList);
    –>>

    Error Message..
    javax.servlet.ServletException: Cannot find bean vipdatas in scope request
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:673)
    org.apache.jsp.AddUserData_jsp._jspService(AddUserData_jsp.java:205)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

    root cause

    javax.servlet.jsp.JspException: Cannot find bean vipdatas in scope request
    org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:940)
    org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:277)
    org.apache.jsp.AddUserData_jsp._jspService(AddUserData_jsp.java:142)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

    note The full stack trace of the root cause is available in the Tomcat logs.

    ——————————————————————————–

    Apache Tomcat/5.0.12

    #218049 Reply

    Riyad Kalla
    Member

    This is strange because from the code snippet you provided, it looks correct and the vipdatas should be in the request scope… can you post the entire page code here? Wrap it in code tags so it maintains its formatting.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hibernate Problum

You must be logged in to post in the forum log in