[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Cannot find bean formCriarTopologiaCompostaGlobal in scope request

Posted on 2006-07-18
6
Medium Priority
?
287 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

WooCommerce is becoming the most powerful e-commerce plugin for Wordpress. And why not. The platform comprises of numerous core plugins that may come in handy, powerful options to make your website development task much easier.
Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

650 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