Nuno
asked on
Cannot find bean formCriarTopologiaCompostaGlobal in scope request
Hello, i'm receiving the error: Cannot find bean formCriarTopologiaComposta Global in scope request
my bean formCriarTopologiaComposta Global is defined in the following:
<bean:define name="formCriarTopologiaCo mpostaGlob al" id="formCriarTopologiaComp ostaGlobal " type="pt.ptinovacao.sicrem .transmiss ao.form.ge rirTopolog iaComposta .FormCriar TopologiaC ompostaGlo bal" scope="request" toScope="page"/>
Any help would be apreciated.
Thanks
my bean formCriarTopologiaComposta
<bean:define name="formCriarTopologiaCo
Any help would be apreciated.
Thanks
ASKER
It didn't solve my problem.
Now i receive the following error:
Attribute class invalid for tag define according to TLD
Now i receive the following error:
Attribute class invalid for tag define according to TLD
ASKER
I tried to change the scope of the bean like this:
<bean:define name="formCriarTopologiaCo mpostaGlob al" id="formCriarTopologiaComp ostaGlobal " type="pt.ptinovacao.sicrem .transmiss ao.form.ge rirTopolog iaComposta .FormCriar TopologiaC ompostaGlo bal" toScope="page"/>
and received the following error:
"Cannot find bean formCriarTopologiaComposta Global in any scope"
In struts-config.xml file i have:
<form-bean name="FormCriarTopologiaCo mpostaGlob al"
type="pt.ptinovacao.sicrem .transmiss ao.form.ge rirTopolog iaComposta .FormCriar TopologiaC ompostaGlo bal">
</form-bean>
<action
path="/CriarTopologiaCompo staGlobal"
type="pt.ptinovacao.sicrem .transmiss ao.action. gerirTopol ogiaCompos ta.ActionC riarTopolo giaCompost aGlobal"
name="FormCriarTopologiaCo mpostaGlob al"
scope="request"
validate="true">
<forward
name="continue"
path="/gerir/topologiasCom postas/top ologiaComp ostaGlobal Criar.jsp" />
</action>
and in struts-bean.tld :
<tag>
<name>define</name>
<tagclass>org.apache.strut s.taglib.b ean.Define Tag</tagcl ass>
<teiclass>org.apache.strut s.taglib.b ean.Define Tei</teicl ass>
<bodycontent>JSP</bodycont ent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexpr value>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprv alue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprv alue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprv alue>
</attribute>
<attribute>
<name>toScope</name>
<required>false</required>
<rtexprvalue>true</rtexprv alue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>true</rtexprv alue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprv alue>
</attribute>
</tag>
<tag>
I don't understand what is wrong. Can anyone help me?
<bean:define name="formCriarTopologiaCo
and received the following error:
"Cannot find bean formCriarTopologiaComposta
In struts-config.xml file i have:
<form-bean name="FormCriarTopologiaCo
type="pt.ptinovacao.sicrem
</form-bean>
<action
path="/CriarTopologiaCompo
type="pt.ptinovacao.sicrem
name="FormCriarTopologiaCo
scope="request"
validate="true">
<forward
name="continue"
path="/gerir/topologiasCom
</action>
and in struts-bean.tld :
<tag>
<name>define</name>
<tagclass>org.apache.strut
<teiclass>org.apache.strut
<bodycontent>JSP</bodycont
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexpr
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprv
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprv
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprv
</attribute>
<attribute>
<name>toScope</name>
<required>false</required>
<rtexprvalue>true</rtexprv
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>true</rtexprv
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprv
</attribute>
</tag>
<tag>
I don't understand what is wrong. Can anyone help me?
ASKER
I already found the problem. The problem was in my Action, i was not using the form formCriarTopologiaComposta Global like i my JSP. Its name was wrong
Thanks anyway
Thanks anyway
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you want to create a new bean then you have to supply the class attribute with the class type(example class="pt.ptinovacao.sicre
Cheers!