• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

ServletException: bean not found within scope

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI All,

My app running in Jboss, when I try to click on the menu option. I'm getting following error:

javax.servlet.ServletException: bean descriptionVO not found within scope
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
at org.apache.jsp.AddRigMapping_jsp._jspService(AddRigMapping_jsp.java:305)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
.................

and my jsp is

<%@ taglib prefix="c" uri="Standard" %>
<%@ taglib prefix="x" uri="Custom" %>

<html>

<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-1">
<title>Add RigMapping</title>
<link rel="stylesheet" type="text/css" href="styles/pageStyle.css">
<%@ page import="zaa.co.rmba.di.util.Constants" %>

<jsp:useBean id="addlistVO" type="zaa.co.rmba.di.beans.AddListVO" scope="session" />

<SCRIPT LANGUAGE="JavaScript" SRC="javascript/util.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="javascript/date/AnchorPosition.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="javascript/date/PopupWindow.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="javascript/date/CalendarPopup.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="javascript/date/Date.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="javascript/util.js"></SCRIPT>

<jsp:useBean id="descriptionVO" type="zaa.co.rmba.di.beans.DescriptionVO" scope="session" />

<jsp:useBean id="confirmationVO" type="zaa.co.rmba.di.beans.ConfirmationVO" scope="session" />

<jsp:useBean id="dateVO" type="zaa.co.rmba.di.beans.DateVO" scope="request" />
<%@ include file="menu.html" %>
</head>

<body>
<br>
<br>
<hr>
<br>
<h3>Add RigMapping</h3>



<form name="AddRigMapForm" method="POST" action="FrontController?command=AddRigMapping">
<p> </p>
<div class="tdc">
<center>
<table border="0" width="697">
...................................

and my bean is

package zaa.co.rmba.di.beans;

public class DescriptionVO {

private String reportcodeDescription;
private String majorcodeDescription;
private String subcodeDescription;

........................................

}


Any body know, what causing the problem. Any help will be greatly appreciated.

thanks in advance
 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I donno the actual cause but import the class file and try if it works ..
<%@ page import="zaa.co.rmba.di.beans.DescriptionVO" %>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic