Hi,

I am forwarding the request and response objects from a servlet to a JSP as
shown below :

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import org.w3c.dom.*;
import org.xml.sax.*;
import org.apache.xerces.dom.*;
import org.apache.xerces.parsers.*;
import org.apache.xml.serialize.*;


public class XmlServlet extends GenericServlet {

    public XmlServlet() {}

    public void service(ServletRequest req, ServletResponse res) throws
ServletException {
     try {
         RequestDispatcher rd =
getServletContext().getRequestDispatcher("/very_simple.jsp");
         rd.forward(req, res);
     } catch (Throwable e) {
       e.printStackTrace();
     }
    }
}

Now very_simple.jsp is accessing a bean called Test :

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<%@ page contentType="text/xml;charset=ISO-8859-1" %>
<jsp:useBean id="test" class="Test"/>

<inventory>
        <book>
            <ISBN>0393040009</ISBN>
            <title>Points Unknown</title>
            <price>$23.96</price>
        </book>
</inventory>

When I run the application I am seeing the error message "The type named
Test is not defined" in the VAJ debugger for the resulting servlet of the
JSP page. How can I fix this problem ?

Thanks for your time,
Bala

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to