I have this environment
--- NS Enterprise 4.0
--- a package with my classes in a servlet directory
--- I load a servlet that invoques a jsp page in this form:
CampusBean obj = new CampusBean();
rq.setAttribute("campus",obj);
try {
RequestDispatcher rd =
getServletContext().getRequestDispatcher("/campus2000/prova.jsp");
rd.include(rq,rp);
}
catch (Exception e) {
errMgr.printError("--Error. "+e.getMessage());
rp.setContentType("text/html");
out.println("Se ha producido un error--");
}
I want to access in prova.jsp to a campusbean
-- The jsp page have this code::
<jsp:useBean id="campus" scope="request" class="CampusBean"/>
<hr>
<%=campus.getString("id")%><br>
<%=campus.getString("sql")%><br>
<%=campus.getString("jsp")%><br>
<hr>
The server error log shows this message
[15/Jul/1999:14:51:50] warning ( 61): JSP compilation error:
java.lang.Exception: Java/JSP compile error:
..\ClassCache\C419847015\e_\internet\campus_virtual\campus_2000\www\prova.java:34:
Undefined variable or class name: campus
out.print(campus.getString("id"));
Why the jsp page can't acces to campus bean;
--
Emilio Alvarez Rebollo
Tècnic de l'Oficina de l'Autònoma Interactiva Docent
Responsable Desenvolupament
Universitat Autònoma de Barcelona
tfno 93 581 33 18
e-mail: [EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".