Found the issue. I was missing my <html:form> tag.

Maybe there should be a better error message for this.

-Gp

-----Original Message-----
From: Giampiero De Ciantis [mailto:[EMAIL PROTECTED] 
Sent: August 20, 2003 4:19 PM
To: 'Struts User Mailing List'
Subject: Cannot find bean under name org.apache.struts.taglib.html.BEAN

I received the following error when I tried to run one of my JSP pages which
follows an Action that completed successfully:

Cannot find bean under name org.apache.struts.taglib.html.BEAN

Here is the code to the jsp page:

<tiles:insert definition="mainLayout">
  <tiles:put name="title" type="string">Attributes</tiles:put>
  <tiles:put name="body" type="string">
        

        <logic:present name="currentItem">
        <logic:iterate indexId="i" id="attribute" name="currentItem"
property="attributes" type="ItemAttributeBean"> 
                <bean:write name="attribute" property="name"/>:
                <html:select property='<%= "attribute" + i %>'>
                        <html:options name="attribute" property="values"/>
                </html:select>
        
        
        </logic:iterate> 

        </logic:present>

                
  </tiles:put>
</tiles:insert>

Here is the code to the Action that forwards to this page:

          RequestDispatcher rd;           
          HttpSession session = request.getSession();
          int itemID =
Integer.parseInt((String)request.getParameter("itemID"));
          
          
          try{
                        \\ -- SNIP FOR IP PURPOSES --
                         request.setAttribute("currentItem", cartItem);

          }
          catch(Exception ex){
          }
          
          
          
         
          
          // Forward the user to the "success" target
          return (mapping.findForward("success"));




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


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

Reply via email to