I got this solved, though I'm not sure why.  I'm working in JBuilderX and did a 
'clean' and 'rebuild all' and the problem went away. 

I did have the <html:text> properly wrapped.  This problem was happening with that 
variation and even when the jsp had just the taglib definition line (<%@ taglib 
uri="/WEB-INF/struts-html.tld" prefix="html" %>), although other taglibs worked fine 
and this taglib worked fine in other modules of the same application. 

So, it looked like a Struts issue, but I'm guessing now that something got mucked up 
in JBuilder. 


Dave


-----Original Message-----
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 14, 2004 6:38 PM
To: Struts Users Mailing List
Subject: RE: Where's that friggin' bean? 




> -----Original Message-----
> From: Dave Bender [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 14, 2004 4:34 PM
> To: Struts Users Mailing List
> Subject: Where's that friggin' bean? 
> 
> 
> OK, I'm stumped.  Can anybody tell me why I'm getting:
>  javax.servlet.ServletException: Cannot find bean 
> org.apache.struts.taglib.html.BEAN in any scope

The obvious:
1) <html: not wrapped in <html:form like it has to be for any of the form widgets.
2) Something odd with your JSP page.

> 
> when I try to reference the Struts HTML TagLib in a new 
> module I've created? 
> 
> I've got a Struts application with a couple of modules, and 
> I'm using the HTML taglibs in other modules of the same 
> application without a problem.  I've just created a new 
> module, and it's barfing with this error.  Here's my configuration:
> 
> web.xml has this:
> 
> ...
>   <taglib>
>     <taglib-uri>/tags/struts-html</taglib-uri>
>     <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
>   </taglib>
> ...
> 
> 
> My problem JSP starts with this:
> 
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/ldap.tld" prefix="ldap" %>
> 
> I've tried this but it makes no difference:
> 
> <%@ taglib uri="/tags/struts-html" prefix="html" %>
> <%@ taglib uri="/WEB-INF/ldap.tld" prefix="ldap" %>
> 
> 
> The taglib config file struts-html.tld is in WEB-INF.  As I 
> mentioned, this is identical to code in other modules/JSPs.
> 
> One difference may be that I'm trying to have a 'one-page' 
> module.  That is it starts with index.do, which display the 
> index.jsp page which contains a form that submits to the same 
> spot.  My intent to to have a database search page that shows 
> the search form at the top of it and, if a search has been 
> submitted also shows the results below it.  Pretty simple to 
> do as a JSP, but maybe this isn't something that can be done 
> with one page in Struts?
> 
> My module config file is this:
> 
> <struts-config>
>   <form-beans>
>     <form-bean name="DirectoryActionForm" 
> type="fpd.DirectoryActionForm" />
>   </form-beans>
>   <action-mappings>
>     <action name="DirectoryActionForm" 
> parameter="/jsp/pages/directory/index.jsp" path="/index" 
> type="fpd.DirectoryAction">
>       <forward name="forward" 
> path="/jsp/pages/directory/index.jsp"  contextRelative="true"/>
>     </action>
>   </action-mappings>
> </struts-config>
> 
> 
> Any help would be appreciated.
> 
> Dave
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to