- This topic has 1 reply, 2 voices, and was last updated 20 years, 1 month ago by Riyad Kalla.
-
AuthorPosts
-
esweargMemberHi!
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
Riyad KallaMemberThis 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.
-
AuthorPosts