struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo Cortes" <rcor...@boltstaff.com>
Subject RE: Cannot Find Bean in Any Scope
Date Mon, 14 Jun 2004 13:11:29 GMT
Caroline,

This URL might help:

http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html

Ciao,
Ricardo


-----Original Message-----
From: Caroline Jen [mailto:jiapei_jen@yahoo.com]
Sent: Saturday, June 12, 2004 7:28 PM
To: struts-user@jakarta.apache.org
Subject: Cannot Find Bean in Any Scope


I am using the Struts framework.  I have a JSP, which
imports a JavaBean "ThreadBean".  Therefore, in the
beginning of my JSP, in addition to 

<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/tiles" prefix="tiles" %>
<%@ taglib uri="/tags/request" prefix="req" %>

I have

<%@ page import="org.MyOrg.MyProj.message.ThreadBean"
%>

In my JSP, I try to write out the properties of this
JavaBean; for example:

  <%=threadBean.getSender()%>
  <%=threadBean.getThreadReplyCount()%>
  <%=threadBean.getThreadViewCount()%>

I got the error message:

----- Root Cause -----
javax.servlet.ServletException: Cannot find bean
threadBean in any scope

What is the correct way to do it?



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message