You return an result of type ERROR in your DomainAction1 action.
The problem is, this result is not defined in your struts.xml.

Example:

<action name="obtainData" class="com.vivek.struts2.action.DomainAction1"
method="obtainData">
  <result name="success">/jsp/interface.jsp</result> 
  <result name="error">/jsp/interfaceError.jsp</result> 
</action>


Johannes


JavaNoobie wrote:
> 
> Hi All,
> I'm a newbie to Struts 2 , and have tried to create my application using
> references off the internet .However currently  I'm faced with an error
> while trying to run the program , and i cant figure out where my mistake
> is :(. Please help me find out what I'm missing .
> I've attached a screen shot of my error log and source code . 
> 
> The error that I get is-
> 
> SEVERE: Could not find action or result
> No result defined for action com.vivek.struts2.action.DomainAction1 and
> result error - action -
> file:/C:/Program%20Files/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Struts2DomMasBAck/WEB-INF/classes/struts.xml:25:101
> at
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:350)
>       at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
>       at
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)
>       at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)...........................
> 
>  http://old.nabble.com/file/p31112825/DomainAction1.java
> DomainAction1.java 
>  http://old.nabble.com/file/p31112825/DomainDAO.java DomainDAO.java 
>  http://old.nabble.com/file/p31112825/interface.jsp interface.jsp 
>  http://old.nabble.com/file/p31112825/strutsxml.txt strutsxml.txt 
> 


-----
--- 
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep

-- 
View this message in context: 
http://old.nabble.com/Struts-2-Error%3ASEVERE%3A-Could-not-find-action-or-result-tp31112825p31112826.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to