You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Karr, David" <da...@wamu.net> on 2008/06/14 04:08:10 UTC

Looking for some more troubleshooting resources

I'm starting to do some simple experiments with Struts2 (those who know
me would wonder what took me so long :) ).  I have one blocking problem,
but I would more appreciate hints on how to diagnose particular kinds of
problems, as opposed to just giving me the answer.

In this case I'm getting the infamous "No result defined for action
<Action> and result input".  The problem is I'm pretty sure I HAVE an
input result in my action.

My struts.xml is very simple:
-----------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 2.0//EN" "struts-2.0.dtd" >
<struts>
    <constant name="struts.devMode" value="true" />
    <package extends="struts-default" name="main" namespace="/main">
        <action name="Form" class="com.wamu.strutsform.FormAction">
            <result name="input">/form.jsp</result>
            <result name="success">/form.jsp</result>
        </action>
    </package>
</struts>
-------------------

So, for instance, what pieces of information could I look at that could
give me hints on what I'm doing wrong here?

Re: Looking for some more troubleshooting resources

Posted by "Alberto A. Flores" <aa...@gmail.com>.
Check the HTML form that is submitted to the server. Understanding
namespaces is a bit tricky in the beginning. Also check the "slashes"
configuration attribute as part of the mapping name.

On Fri, Jun 13, 2008 at 10:08 PM, Karr, David <da...@wamu.net> wrote:

> I'm starting to do some simple experiments with Struts2 (those who know
> me would wonder what took me so long :) ).  I have one blocking problem,
> but I would more appreciate hints on how to diagnose particular kinds of
> problems, as opposed to just giving me the answer.
>
> In this case I'm getting the infamous "No result defined for action
> <Action> and result input".  The problem is I'm pretty sure I HAVE an
> input result in my action.
>
> My struts.xml is very simple:
> -----------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts
> Configuration 2.0//EN" "struts-2.0.dtd" >
> <struts>
>    <constant name="struts.devMode" value="true" />
>    <package extends="struts-default" name="main" namespace="/main">
>        <action name="Form" class="com.wamu.strutsform.FormAction">
>            <result name="input">/form.jsp</result>
>            <result name="success">/form.jsp</result>
>        </action>
>    </package>
> </struts>
> -------------------
>
> So, for instance, what pieces of information could I look at that could
> give me hints on what I'm doing wrong here?
>



-- 
Alberto
http://www.linkedin.com/in/aflores

Re: Looking for some more troubleshooting resources

Posted by Al Sutton <al...@alsutton.com>.
Can you post the HTML for your page.

Ta,

Al.

Karr, David wrote:
> I'm starting to do some simple experiments with Struts2 (those who know
> me would wonder what took me so long :) ).  I have one blocking problem,
> but I would more appreciate hints on how to diagnose particular kinds of
> problems, as opposed to just giving me the answer.
>
> In this case I'm getting the infamous "No result defined for action
> <Action> and result input".  The problem is I'm pretty sure I HAVE an
> input result in my action.
>
> My struts.xml is very simple:
> -----------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts
> Configuration 2.0//EN" "struts-2.0.dtd" >
> <struts>
>     <constant name="struts.devMode" value="true" />
>     <package extends="struts-default" name="main" namespace="/main">
>         <action name="Form" class="com.wamu.strutsform.FormAction">
>             <result name="input">/form.jsp</result>
>             <result name="success">/form.jsp</result>
>         </action>
>     </package>
> </struts>
> -------------------
>
> So, for instance, what pieces of information could I look at that could
> give me hints on what I'm doing wrong here?
>
>   


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


Re: Looking for some more troubleshooting resources

Posted by Dave Newton <ne...@yahoo.com>.
In addition to Alberto's answer when I'm using XML config I'll pop into the config-browser for a simple sanity check.

Dave


--- On Fri, 6/13/08, Karr, David <da...@wamu.net> wrote:

> From: Karr, David <da...@wamu.net>
> Subject: Looking for some more troubleshooting resources
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Date: Friday, June 13, 2008, 10:08 PM
> I'm starting to do some simple experiments with Struts2
> (those who know
> me would wonder what took me so long :) ).  I have one
> blocking problem,
> but I would more appreciate hints on how to diagnose
> particular kinds of
> problems, as opposed to just giving me the answer.
> 
> In this case I'm getting the infamous "No result
> defined for action
> <Action> and result input".  The problem is
> I'm pretty sure I HAVE an
> input result in my action.
> 
> My struts.xml is very simple:
> -----------------------
> <?xml version="1.0"
> encoding="UTF-8"?>
> <!DOCTYPE struts PUBLIC "-//Apache Software
> Foundation//DTD Struts
> Configuration 2.0//EN" "struts-2.0.dtd" >
> <struts>
>     <constant name="struts.devMode"
> value="true" />
>     <package extends="struts-default"
> name="main" namespace="/main">
>         <action name="Form"
> class="com.wamu.strutsform.FormAction">
>             <result
> name="input">/form.jsp</result>
>             <result
> name="success">/form.jsp</result>
>         </action>
>     </package>
> </struts>
> -------------------
> 
> So, for instance, what pieces of information could I look
> at that could
> give me hints on what I'm doing wrong here?

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