You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by xinghen <xi...@gmail.com> on 2013/12/03 10:16:54 UTC
ERROR Dispatcher:27 - Could not find action or result No result
defined for action com.xinghen.view.action.GoodAction and result input
i have meet a problem, when commit the form appear the error : ERROR
Dispatcher:27 - Could not find action or result No result defined for action
com.xinghen.view.action.GoodAction and result input
this is my struts.xml
<action name="addGoodAction_*" class="goodAction" method="{1}">
<result name="save">/WEB-INF/jsp/usedGoodsAction/addUsedGood.jsp</result>
<result
name="toUploadResult">/WEB-INF/jsp/usedGoodsAction/uploadGoodResult.jsp</result>
<interceptor-ref name="fileUpload">
4096010
</interceptor-ref>
<
<interceptor-ref name="defaultStack"></interceptor-ref>
</action>
my jsp form :
wait for help ~~~~
--
View this message in context: http://struts.1045723.n5.nabble.com/ERROR-Dispatcher-27-Could-not-find-action-or-result-No-result-defined-for-action-com-xinghen-view-act-tp5714825.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: ERROR Dispatcher:27 - Could not find action or result No result
defined for action com.xinghen.view.action.GoodAction and result input
Posted by Lukasz Lenart <lu...@apache.org>.
2013/12/3 xinghen <xi...@gmail.com>:
> i have meet a problem, when commit the form appear the error : ERROR
> Dispatcher:27 - Could not find action or result No result defined for action
> com.xinghen.view.action.GoodAction and result input
>
> this is my struts.xml
> <action name="addGoodAction_*" class="goodAction" method="{1}">
>
> <result name="save">/WEB-INF/jsp/usedGoodsAction/addUsedGood.jsp</result>
>
> <result
> name="toUploadResult">/WEB-INF/jsp/usedGoodsAction/uploadGoodResult.jsp</result>
>
> <interceptor-ref name="fileUpload">
>
> 4096010
>
> </interceptor-ref>
> <
> <interceptor-ref name="defaultStack"></interceptor-ref>
>
> </action>
>
> my jsp form :
>
> wait for help ~~~~
>
>
>
> --
> View this message in context: http://struts.1045723.n5.nabble.com/ERROR-Dispatcher-27-Could-not-find-action-or-result-No-result-defined-for-action-com-xinghen-view-act-tp5714825.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
>
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: ERROR Dispatcher:27 - Could not find action or result No result
defined for action com.xinghen.view.action.GoodAction and result input
Posted by Lukasz Lenart <lu...@apache.org>.
I don't understand what you're talking about ...
Missing label shouldn't be a problem
2013/12/3 xinghen <xi...@gmail.com>:
> i used bean.attrName in the jsp instead of modelDriven , but i'm
> confused about if i don't define some struts lable that define in the bean
> , the web work can't work ...
>
>
> 2013/12/3 Lukasz Lenart [via Struts] <
> ml-node+s1045723n5714838h49@n5.nabble.com>
>
>> 2013/12/3 xinghen <[hidden email]<http://user/SendEmail.jtp?type=node&node=5714838&i=0>>:
>>
>> > i have meet a problem, when commit the form appear the error :
>> ERROR
>> > Dispatcher:27 - Could not find action or result No result defined for
>> action
>> > com.xinghen.view.action.GoodAction and result input
>>
>> I have missed out result name => input means that there was some
>> validation problem and Struts is trying render back result defined
>> under name input.
>> Try adding
>> <result name="input">/WEB-INF/jsp/usedGoodsAction/addUsedGood.jsp</result>
>>
>> with tag <s:actionerror/>
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5714838&i=1>
>> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5714838&i=2>
>>
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://struts.1045723.n5.nabble.com/struts2-action-error-tp5714825p5714838.html
>> To unsubscribe from struts2 action error, click here<http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5714825&code=eGluZ2hlbi4xOTkxQGdtYWlsLmNvbXw1NzE0ODI1fC05NTQ4MzQ1MjQ=>
>> .
>> NAML<http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: http://struts.1045723.n5.nabble.com/struts2-action-error-tp5714825p5714841.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: ERROR Dispatcher:27 - Could not find action or result No result
defined for action com.xinghen.view.action.GoodAction and result input
Posted by xinghen <xi...@gmail.com>.
i used bean.attrName in the jsp instead of modelDriven , but i'm
confused about if i don't define some struts lable that define in the bean
, the web work can't work ...
2013/12/3 Lukasz Lenart [via Struts] <
ml-node+s1045723n5714838h49@n5.nabble.com>
> 2013/12/3 xinghen <[hidden email]<http://user/SendEmail.jtp?type=node&node=5714838&i=0>>:
>
> > i have meet a problem, when commit the form appear the error :
> ERROR
> > Dispatcher:27 - Could not find action or result No result defined for
> action
> > com.xinghen.view.action.GoodAction and result input
>
> I have missed out result name => input means that there was some
> validation problem and Struts is trying render back result defined
> under name input.
> Try adding
> <result name="input">/WEB-INF/jsp/usedGoodsAction/addUsedGood.jsp</result>
>
> with tag <s:actionerror/>
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5714838&i=1>
> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5714838&i=2>
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://struts.1045723.n5.nabble.com/struts2-action-error-tp5714825p5714838.html
> To unsubscribe from struts2 action error, click here<http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5714825&code=eGluZ2hlbi4xOTkxQGdtYWlsLmNvbXw1NzE0ODI1fC05NTQ4MzQ1MjQ=>
> .
> NAML<http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context: http://struts.1045723.n5.nabble.com/struts2-action-error-tp5714825p5714841.html
Sent from the Struts - User mailing list archive at Nabble.com.
Re: ERROR Dispatcher:27 - Could not find action or result No result
defined for action com.xinghen.view.action.GoodAction and result input
Posted by Lukasz Lenart <lu...@apache.org>.
2013/12/3 xinghen <xi...@gmail.com>:
> i have meet a problem, when commit the form appear the error : ERROR
> Dispatcher:27 - Could not find action or result No result defined for action
> com.xinghen.view.action.GoodAction and result input
I have missed out result name => input means that there was some
validation problem and Struts is trying render back result defined
under name input.
Try adding
<result name="input">/WEB-INF/jsp/usedGoodsAction/addUsedGood.jsp</result>
with tag <s:actionerror/>
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: ERROR Dispatcher:27 - Could not find action or result No result
defined for action com.xinghen.view.action.GoodAction and result input
Posted by Lukasz Lenart <lu...@apache.org>.
It shouldn't be a problem - this depends on how have you set up validation
2013/12/3 xinghen <xi...@gmail.com>:
> i think my problems is use the modelDriven , Whether the attribute Bean
> inside the must and form one one? i define some attribute in Bean ,but
> not in form , is this the problem ?
>
>
>
> --
> View this message in context: http://struts.1045723.n5.nabble.com/struts2-action-error-tp5714825p5714834.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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: ERROR Dispatcher:27 - Could not find action or result No result
defined for action com.xinghen.view.action.GoodAction and result input
Posted by xinghen <xi...@gmail.com>.
i think my problems is use the modelDriven , Whether the attribute Bean
inside the must and form one one? i define some attribute in Bean ,but
not in form , is this the problem ?
--
View this message in context: http://struts.1045723.n5.nabble.com/struts2-action-error-tp5714825p5714834.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: ERROR Dispatcher:27 - Could not find action or result No result
defined for action com.xinghen.view.action.GoodAction and result input
Posted by xinghen <xi...@gmail.com>.
i think my problems is use the modelDriven , Whether the attribute Bean
inside the must and form one one? i define some attribute in Bean ,but
not in form , is this the problem ?
2013/12/3 xinghen [via Struts] <ml...@n5.nabble.com>
> this is the listener :
>
> <listener>
>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
> </listener>
> <context-param>
> <param-name>contextConfigLocation</param-name>
>
> <param-value>classpath:applicationContext*.xml</param-value>
> </context-param>
>
>
> <filter>
> <filter-name>struts2</filter-name>
>
> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
> </filter>
> <filter-mapping>
> <filter-name>struts2</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://struts.1045723.n5.nabble.com/struts2-action-error-tp5714825p5714830.html
> To unsubscribe from struts2 action error, click here<http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5714825&code=eGluZ2hlbi4xOTkxQGdtYWlsLmNvbXw1NzE0ODI1fC05NTQ4MzQ1MjQ=>
> .
> NAML<http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context: http://struts.1045723.n5.nabble.com/struts2-action-error-tp5714825p5714833.html
Sent from the Struts - User mailing list archive at Nabble.com.
Re: ERROR Dispatcher:27 - Could not find action or result No result
defined for action com.xinghen.view.action.GoodAction and result input
Posted by xinghen <xi...@gmail.com>.
this is the listener :
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext*.xml</param-value>
</context-param>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
--
View this message in context: http://struts.1045723.n5.nabble.com/struts2-action-error-tp5714825p5714830.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: ERROR Dispatcher:27 - Could not find action or result No result
defined for action com.xinghen.view.action.GoodAction and result input
Posted by Lukasz Lenart <lu...@apache.org>.
Can you post web.xml? Struts version?
2013/12/3 xinghen <xi...@gmail.com>:
> i have meet a problem, when commit the form appear the error : ERROR
> Dispatcher:27 - Could not find action or result No result defined for action
> com.xinghen.view.action.GoodAction and result input
>
> this is my struts.xml
> <action name="addGoodAction_*" class="goodAction" method="{1}">
>
> <result name="save">/WEB-INF/jsp/usedGoodsAction/addUsedGood.jsp</result>
>
> <result
> name="toUploadResult">/WEB-INF/jsp/usedGoodsAction/uploadGoodResult.jsp</result>
>
> <interceptor-ref name="fileUpload">
>
> 4096010
>
> </interceptor-ref>
> <
> <interceptor-ref name="defaultStack"></interceptor-ref>
>
> </action>
>
> my jsp form :
>
> wait for help ~~~~
>
>
>
> --
> View this message in context: http://struts.1045723.n5.nabble.com/ERROR-Dispatcher-27-Could-not-find-action-or-result-No-result-defined-for-action-com-xinghen-view-act-tp5714825.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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org