Solved

Cannot find bean formCriarTopologiaCompostaGlobal in scope request

Posted on 2006-07-18
6
264 Views
Last Modified: 2010-04-01
Hello, i'm receiving the error: Cannot find bean formCriarTopologiaCompostaGlobal in scope request

my bean formCriarTopologiaCompostaGlobal is defined in the following:

<bean:define name="formCriarTopologiaCompostaGlobal" id="formCriarTopologiaCompostaGlobal" type="pt.ptinovacao.sicrem.transmissao.form.gerirTopologiaComposta.FormCriarTopologiaCompostaGlobal" scope="request" toScope="page"/>

Any help would be apreciated.

Thanks
0
Comment
Question by:NUNOPALMA
  • 3
6 Comments
 
LVL 1

Expert Comment

by:muthu_tigerfire
ID: 17128979
Hi NUNOPALMA,
If you want to create a new bean then you have to supply the class attribute with the class type(example class="pt.ptinovacao.sicrem.transmissao.formCriarTopologiaCompostaGlobal"
Cheers!
0
 

Author Comment

by:NUNOPALMA
ID: 17129106
It didn't solve my problem.

Now i receive the following error:

Attribute class invalid for tag define according to TLD

0
 

Author Comment

by:NUNOPALMA
ID: 17130122
I tried to change the scope of the bean like this:

<bean:define name="formCriarTopologiaCompostaGlobal" id="formCriarTopologiaCompostaGlobal" type="pt.ptinovacao.sicrem.transmissao.form.gerirTopologiaComposta.FormCriarTopologiaCompostaGlobal"  toScope="page"/>

and received the following error:

"Cannot find bean formCriarTopologiaCompostaGlobal in any scope"

In struts-config.xml file i have:

        <form-bean name="FormCriarTopologiaCompostaGlobal"
            type="pt.ptinovacao.sicrem.transmissao.form.gerirTopologiaComposta.FormCriarTopologiaCompostaGlobal">
        </form-bean>

       <action
            path="/CriarTopologiaCompostaGlobal"
            type="pt.ptinovacao.sicrem.transmissao.action.gerirTopologiaComposta.ActionCriarTopologiaCompostaGlobal"
            name="FormCriarTopologiaCompostaGlobal"
            scope="request"
            validate="true">
            <forward
                name="continue"
                path="/gerir/topologiasCompostas/topologiaCompostaGlobalCriar.jsp"/>
        </action>

and in struts-bean.tld :

<tag>
<name>define</name>
<tagclass>org.apache.struts.taglib.bean.DefineTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.DefineTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>toScope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>

I don't understand what is wrong. Can anyone help me?

0
 

Author Comment

by:NUNOPALMA
ID: 17130533
I already found the problem. The problem was in my Action, i was not using the form formCriarTopologiaCompostaGlobal like i my JSP. Its name was wrong

Thanks anyway
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 17399951
PAQed with points refunded (500)

GhostMod
Community Support Moderator
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

What is Backup? Backup software creates one or more copies of the data on your digital devices in case your original data is lost or damaged. Different backup solutions protect different kinds of data and different combinations of devices. For e…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now