You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Giampiero De Ciantis <gd...@aci.on.ca> on 2003/08/20 22:19:16 UTC
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Cannot find bean under name org.apache.struts.taglib.html.BEAN
Posted by Giampiero De Ciantis <gd...@aci.on.ca>.
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:gdeciant@aci.on.ca]
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org