You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Stefano Tranquillini <st...@gmail.com> on 2009/04/18 14:31:05 UTC

WARNING: No configuration found for the specified action:

Hi all.
i've a warning in jboss log and i want eliminate it.

14:28:43,312 WARN  [ServletUrlRenderer] No configuration found for the
specified  action: '/user/Register.action' in namespace: '/'. Form
action defaulting to 'action' attribute's literal value.

so.
i've a class callerd Register in package user
so:
user.Register.class

i've this struts:

<struts>

    <package name="home" extends="default" namespace="/">
        <action name="showhome" >
            <result type="tiles">user.home</result>
        </action>
        <action name="showregister" >
            <result type="tiles">user.register.input</result>
        </action>
        <action name="register" class="user.Register">
            <result name="input" type="tiles">user.register.input</result>
            <result name="success" type="tiles">user.register.success</result>
            <result name="error" type="tiles">error</result>
        </action>
    </package>


    <package name="default" extends="struts-default" abstract="true">
        <result-types>
            <result-type name="tiles"
class="org.apache.struts2.views.tiles.TilesResult"/>
        </result-types>
        <interceptors>
            <interceptor name="ejb3"
class="com.opensymphony.xwork2.ejb3plugin.InjectEJBInterceptor"></interceptor>

            <interceptor-stack name="new.stack">
                <interceptor-ref name="ejb3" />
                <interceptor-ref name="defaultStack" />
            </interceptor-stack>
        </interceptors>

        <default-interceptor-ref name="new.stack" />
    </package>
</struts>

and this form:

<%@ taglib uri="/struts-tags" prefix="s" %>
<s:form action="register" method="POST">
    <s:actionerror/>
    <s:textfield label="firstname" name="firstname" />
    <s:textfield label="lastname" name="lastname" />
    <s:textfield label="address" name="address" />
    <s:textfield label="username" name="username" />
    <s:password label="password" name="password"/>
    <s:textfield label="money" name="money" />
    <s:submit />
</s:form>


where is the error?

how i can use the namespace in the action?
the project works but returns a WARN and i don't want warn.

thanks

-- 
Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: WARNING: No configuration found for the specified action:

Posted by sgupta4686 <su...@infosys.com>.


sgupta4686 wrote:
> 
> Hi , 
>  I am getting the following log in geronimo for few action classes only :
> Geronimo log shows:
> 2010-03-01 2:01:53,582 WARN  [Form] No configuration found for the
> specified action: 'SubmitSearchText.action' in namespace: '/text'. Form
> action defaulting to 'action' attribute's literal value.
> 
> Following is struts.xml :
> 	<package name="text" namespace="/text" extends="default" >
>          <action name="*SearchText" method="{1}"             
> class="com.presentation.action.SearchAction">
> 			text
> 			<result>/WEB-INF/jsp/search/search.jsp</result>
> 			<result name="input">/WEB-INF/jsp/search/search.jsp</result>
> 			<result name="searchresults"
> type="redirect-action">ResultsText</result>
> 		</action>
> </package>
> 
> Following is the form set in jsp:
> <s:form method="post" id="mainForm" action="SubmitSearchText.action"
> namespace="/text">
> 
> Kindly help me to remove the warnings from the server log.
> 
> Thanks,
> SGupta
> 
> 

-- 
View this message in context: http://old.nabble.com/WARNING%3A-No-configuration-found-for-the-specified-action%3A-tp23112439p27790806.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: WARNING: No configuration found for the specified action:

Posted by sgupta4686 <su...@infosys.com>.
Thanks a lot. This is working.

mccorby wrote:
> 
> Remove ".action" from <s:form method="post" id="mainForm"
> action="SubmitSearchText.action"
> 
> That should make it
> 
> On Fri, Mar 5, 2010 at 2:44 PM, sgupta4686
> <su...@infosys.com>wrote:
> 
>>
>> Hi ,
>>  I am getting the following log in geronimo for few action classes only :
>> Geronimo log shows:
>> 2010-03-01 2:01:53,582 WARN  [Form] No configuration found for the
>> specified
>> action: 'SubmitSearchText.action' in namespace: '/text'. Form action
>> defaulting to 'action' attribute's literal value.
>>
>> Following is struts.xml :
>>        <package name="text" namespace="/text" extends="default" >
>>         <action name="*SearchText" method="{1}"
>> class="com.presentation.action.SearchAction">
>>                        text
>>                        <result>/WEB-INF/jsp/search/search.jsp</result>
>>                        <result
>> name="input">/WEB-INF/jsp/search/search.jsp</result>
>>                        <result name="searchresults"
>> type="redirect-action">ResultsText</result>
>>                </action>
>> </package>
>>
>> Following is the form set in jsp:
>> <s:form method="post" id="mainForm" action="SubmitSearchText.action"
>> namespace="/text">
>>
>> Kindly help me to remove the warnings from the server log.
>>
>> Thanks,
>> SGupta
>>
>> --
>> View this message in context:
>> http://old.nabble.com/WARNING%3A-No-configuration-found-for-the-specified-action%3A-tp23112439p27790799.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/WARNING%3A-No-configuration-found-for-the-specified-action%3A-tp23112439p27790863.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: WARNING: No configuration found for the specified action:

Posted by "Jose A. Corbacho" <mc...@gmail.com>.
Remove ".action" from <s:form method="post" id="mainForm"
action="SubmitSearchText.action"

That should make it

On Fri, Mar 5, 2010 at 2:44 PM, sgupta4686 <su...@infosys.com>wrote:

>
> Hi ,
>  I am getting the following log in geronimo for few action classes only :
> Geronimo log shows:
> 2010-03-01 2:01:53,582 WARN  [Form] No configuration found for the
> specified
> action: 'SubmitSearchText.action' in namespace: '/text'. Form action
> defaulting to 'action' attribute's literal value.
>
> Following is struts.xml :
>        <package name="text" namespace="/text" extends="default" >
>         <action name="*SearchText" method="{1}"
> class="com.presentation.action.SearchAction">
>                        text
>                        <result>/WEB-INF/jsp/search/search.jsp</result>
>                        <result
> name="input">/WEB-INF/jsp/search/search.jsp</result>
>                        <result name="searchresults"
> type="redirect-action">ResultsText</result>
>                </action>
> </package>
>
> Following is the form set in jsp:
> <s:form method="post" id="mainForm" action="SubmitSearchText.action"
> namespace="/text">
>
> Kindly help me to remove the warnings from the server log.
>
> Thanks,
> SGupta
>
> --
> View this message in context:
> http://old.nabble.com/WARNING%3A-No-configuration-found-for-the-specified-action%3A-tp23112439p27790799.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: WARNING: No configuration found for the specified action:

Posted by sgupta4686 <su...@infosys.com>.
Hi , 
 I am getting the following log in geronimo for few action classes only :
Geronimo log shows:
2010-03-01 2:01:53,582 WARN  [Form] No configuration found for the specified
action: 'SubmitSearchText.action' in namespace: '/text'. Form action
defaulting to 'action' attribute's literal value.

Following is struts.xml :
	<package name="text" namespace="/text" extends="default" >
         <action name="*SearchText" method="{1}"             
class="com.presentation.action.SearchAction">
			text
			<result>/WEB-INF/jsp/search/search.jsp</result>
			<result name="input">/WEB-INF/jsp/search/search.jsp</result>
			<result name="searchresults" type="redirect-action">ResultsText</result>
		</action>
</package>

Following is the form set in jsp:
<s:form method="post" id="mainForm" action="SubmitSearchText.action"
namespace="/text">

Kindly help me to remove the warnings from the server log.

Thanks,
SGupta

-- 
View this message in context: http://old.nabble.com/WARNING%3A-No-configuration-found-for-the-specified-action%3A-tp23112439p27790799.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: WARNING: No configuration found for the specified action:

Posted by sgupta4686 <su...@infosys.com>.
Hi ,
>  I am getting the following log in geronimo for few action classes only :
> Geronimo log shows:
> 2010-03-01 2:01:53,582 WARN  [Form] No configuration found for the 
> specified action: 'SubmitSearchText.action' in namespace: '/text'. 
> Form action defaulting to 'action' attribute's literal value.
> 
> Following is struts.xml :
> 	<package name="text" namespace="/text" extends="default" >
>          <action name="*SearchText" method="{1}"             
> class="com.presentation.action.SearchAction">
> 			text
> 			<result>/WEB-INF/jsp/search/search.jsp</result>
> 			<result name="input">/WEB-INF/jsp/search/search.jsp</result>
> 			<result name="searchresults"
> type="redirect-action">ResultsText</result>
> 		</action>
> </package>
> 
> Following is the form set in jsp:
> <s:form method="post" id="mainForm" action="SubmitSearchText.action"
> namespace="/text">
> 
> Kindly help me to remove the warnings from the server log.
> 
> Thanks,
> SGupta

-- 
View this message in context: http://old.nabble.com/WARNING%3A-No-configuration-found-for-the-specified-action%3A-tp23112439p27790821.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: WARNING: No configuration found for the specified action:

Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/4/18 Stefano Tranquillini <st...@gmail.com>:
>    <package name="home" extends="default" namespace="/">

There isn't namespace "user", only "/". Namespace is a virtual name,
doesn't base on packages or something. Try to read [1] to understand
it deeply

[1] http://struts.apache.org/2.1.6/docs/namespace-configuration.html


Regards
-- 
Lukasz
http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org