struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mike.w...@honeywell.com
Subject RE: Help with: Cannot find bean org.apache.struts.taglib.html.BEA N in scope null
Date Mon, 25 Mar 2002 14:56:11 GMT
Annie,

The struts.jar is already in \WEB-INF\lib.  I have other actions which
proceed this one that work just fine.  I even have other "html" tags in this
jsp which seem to work ok.  For example, I have a <html:form> which is
accepted.  But as soon as I put in the <html:text> with the property
attribute to refer to one of my form bean attributes, it gets the error.

Thanks,

Mike

-----Original Message-----
From: Annie Chang [mailto:achang@macrotechnic.com]
Sent: Monday, March 25, 2002 12:18 AM
To: Struts Users Mailing List
Subject: Re: Help with: Cannot find bean
org.apache.struts.taglib.html.BEAN in scope null


Please make sure Struts lib(all the jar file) are in your application's
classpath.
Simply, you can copy all jar files of Struts to your application's
\WEB-INF\lib .
It should be OK.

----- Original Message -----
From: <mike.witt@honeywell.com>
To: <struts-user@jakarta.apache.org>
Sent: Sunday, March 24, 2002 8:35 PM
Subject: Help with: Cannot find bean org.apache.struts.taglib.html.BEAN in
scope null


> I'm getting an error (Cannot find bean org.apache.struts.taglib.html.BEAN
in
> scope null) when I attempt to use one of my ActionForm properties in the
JSP
> file.  I've looked the struts-config.xml over 100 times and I can't figure
> out what I'm doing wrong.  Here are the pertinent portions of my
> struts-config.xml.  If anyone sees my problem, I would appreciate some
help.
> Form bean:
>     <form-bean name="pharmacyPeriodSelectForm"
> type="com.omnicare.purchasing.araging.webapp.PharmacyPeriodSelectForm" />
> Action path:
>     <!-- Enter the region name -->
>     <action path="/regionEntry"
>         name="pharmacyPeriodSelectForm"
>
> type="com.omnicare.purchasing.araging.webapp.PharmacyPeriodSelectAction"
>         scope="request"
>         validate="false"
>         input="/pages/AR_pharmacy_period.jsp"
>         parameter="regionEntry">
>       <forward name="success" path="/pages/AR_pharmacy_period.jsp" />
>     </action>
> The PharmacyPeriodSelectAction executes fine.  When I return the success
> forward, I get the error.
> Thanks for your help, Mike Witt
> The full error message is:
> javax.servlet.ServletException: Cannot find bean
> org.apache.struts.taglib.html.BEAN in scope null
> at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:459)
> at
>
pages._0002fpages_0002fAR_0005fpharmacy_0005fperiod_0002ejspAR_0005fpharmacy
>
_0005fperiod_jsp_29._jspService(_0002fpages_0002fAR_0005fpharmacy_0005fperio
> d_0002ejspAR_0005fpharmacy_0005fperiod_jsp_29.java:167)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
> va:130)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:282)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
> pl.java:222)
> at
>
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
> .java:162)
> at
>
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
> va:1758)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
> 2)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:213)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
> Root cause:
> javax.servlet.jsp.JspException: Cannot find bean
> org.apache.struts.taglib.html.BEAN in scope null
> at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:493)
> at
>
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:188)
> at
>
pages._0002fpages_0002fAR_0005fpharmacy_0005fperiod_0002ejspAR_0005fpharmacy
>
_0005fperiod_jsp_29._jspService(_0002fpages_0002fAR_0005fpharmacy_0005fperio
> d_0002ejspAR_0005fpharmacy_0005fperiod_jsp_29.java:135)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
> va:130)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:282)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
> pl.java:222)
> at
>
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
> .java:162)
> at
>
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
> va:1758)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
> 2)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:213)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>
>


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

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


Mime
View raw message