Solved

Cannot find bean formCriarTopologiaCompostaGlobal in scope request

Posted on 2006-07-18
6
266 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
what is stuck threads? 3 97
password protect pdf 11 74
issue with pdf generation 2 85
I am having a difficulty creating a responsive Page for my website. 10 83
Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
Note: This is the second blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   Every month t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

15 Experts available now in Live!

Get 1:1 Help Now