You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Br...@transplace.com on 2001/08/03 16:29:12 UTC
Anyone Seen This? javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null
Do I have a configuration error?
This is my form tag:
<html:form action="/createStakeholder.do"/>
This the entry in struts-config.xml:
<form-beans>
<form-bean name="StakeholderForm"
type="com.transplace.struts.bean.StakeholderForm"/>
</form-beans>
<action-mappings>
<action path="/createStakeholder"
type="com.transplace.struts.action.CreateStakeholderAction"
name="StakeholderForm"
scope="session"
input="/CreateStakeholder.jsp">
<forward name="success" path="/index.jsp"/>
</action>
...
</action-mappings>
Thanks,
Brian
RE: Anyone Seen This? javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null
Posted by Patrick Vanden Driessche <pv...@advalvas.be>.
Hi Brian !
Yes indeed... I just had the same problem ... and it was due to the same
mistake as you did in the code below :-)
You should remove the last slash of your form tag.
It should be like this:
<html:form action="/createStakeholder.do">
This should do it I hope.
Patrick.
-----Original Message-----
From: Brian.Duchouquette@transplace.com
[mailto:Brian.Duchouquette@transplace.com]
Sent: Friday, August 03, 2001 16:29
To: struts-user@jakarta.apache.org
Subject: Anyone Seen This? javax.servlet.ServletException: Cannot find
bean org.apache.struts.taglib.html.BEAN in scope null
Do I have a configuration error?
This is my form tag:
<html:form action="/createStakeholder.do"/>
This the entry in struts-config.xml:
<form-beans>
<form-bean name="StakeholderForm"
type="com.transplace.struts.bean.StakeholderForm"/>
</form-beans>
<action-mappings>
<action path="/createStakeholder"
type="com.transplace.struts.action.CreateStakeholderAction"
name="StakeholderForm"
scope="session"
input="/CreateStakeholder.jsp">
<forward name="success" path="/index.jsp"/>
</action>
...
</action-mappings>
Thanks,
Brian