Good Morning All-

executing 
http://www.planetstruts.org/struts2-showcase/ajax/remoteforms/ and locally
http://localhost:8080/struts2-showcase-2.0.1/ajax/remoteforms/
click on 1st button (Remote form replacing another div)
I see 
Struts Problem Report
Struts has detected an unhandled exception: 

      Messages: There is no Action mapped for action name 
ajax/remoteforms/AjaxRemoteForm.  


--------------------------------------------------------------------------------

Stacktraces
There is no Action mapped for action name ajax/remoteforms/AjaxRemoteForm. - 
[unknown location] 

in /struts-2.0.1/apps/struts2-showcase-2.0.1/WEB-INF/classes/struts-ajax.xml I 
see
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd";>

<struts>
    <package name="ajax" extends="struts-default">
        <action name="AjaxTest" 
class="org.apache.struts2.showcase.ajax.AjaxTestAction">
            <result>/ajax/AjaxResult.jsp</result>
        </action>

        <action name="AjaxRemoteLink" 
class="org.apache.struts2.showcase.ajax.AjaxTestAction">
            <result>/ajax/AjaxResult2.js</result>
        </action>

        <action name="AjaxRemoteForm" 
class="org.apache.struts2.showcase.ajax.AjaxTestAction">
            <result>/ajax/AjaxResult3.jsp</result>
        </action>

<!-- experimental to see if I can specify Action class for 
ajax/remoteforms/AjaxRemoteForm -->
        <action name="ajax/remoteforms/AjaxRemoteForm" 
class="org.apache.struts2.showcase.ajax.AjaxTestAction">
            <result>/ajax/AjaxResult3.jsp</result>
        </action>

apparently by specifying an (Action) class for ajax/remoteforms/AjaxRemoteForm 
I was able to resolve the no Action Mapped 

Does this look right?
Martin--
This e-mail communication and any attachments may contain confidential and 
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you 
are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, 
distribution or copying of it or its 
contents
----- Original Message ----- 
From: "Mark Menard" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, November 16, 2006 11:08 PM
Subject: Re: [s2] mvn archetype


> On 11/16/06 11:03 PM, "Wendy Smoak" <[EMAIL PROTECTED]> wrote:
> 
>> On 11/16/06, Mark Menard <[EMAIL PROTECTED]> wrote:
>> 
>>> I've tried to set up a new project using the struts2 mvn archetype, but to
>>> no avail.
>> 
>> What did you type?
> 
> mvn archetype:create -DgroupId=tutorial -DartifactId=tutorial
> -DarchetypeGroupId=net.vitarara.dan
> -DarchetypeArtifactId=struts2-archetype-starter
> -DarchetypeVersion=2.0.2-SNAPSHOT
> 
> 
>>> Where can I get the archetype file? I've downloaded and built the latest
>>> snapshot using svn and mvn.
>> 
>> If you've built the archetype locally, the version number is 2.0.2-SNAPSHOT .
> 
> I've checked out and done a mvn -Pall on the latest struts2 from svn.
> Wouldn't that have the archetype in it?
> 
>> In case you only checked out and built the framework,  the archetype is here:
>>  
>> http://svn.apache.org/repos/asf/struts/maven/trunk/struts2-archetype-starter/
> 
> I'm totally new to mvn, being an ant guy, how would I tell mvn to go get it
> there?
> 
> Thanks,
> 
> Mark
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to