This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes ServletException: bean not found within scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "ServletException: bean not found within scope " Watch "ServletException: bean not found within scope " New topic

ServletException: bean not found within scope

Ahm Moh

Joined: Sep 22, 2004
Posts: 3
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(
at org.apache.jasper.runtime.PageContextImpl.handlePageException(
at org.apache.jsp.AddRigMapping_jsp._jspService(
at org.apache.jasper.runtime.HttpJspBase.service(
at javax.servlet.http.HttpServlet.service(

and my jsp is

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


<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="" %>

<jsp:useBean id="addlistVO" type="" 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="" scope="session" />

<jsp:useBean id="confirmationVO" type="" scope="session" />

<jsp:useBean id="dateVO" type="" scope="request" />
<%@ include file="menu.html" %>

<h3>Add RigMapping</h3>

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

and my bean is


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
vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185
I donno the actual cause but import the class file and try if it works ..
<%@ page import="" %>
I agree. Here's the link:
subject: ServletException: bean not found within scope
It's not a secret anymore!