You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by meeboo <de...@gmail.com> on 2007/03/07 15:20:54 UTC

There is no Action mapped for action name HelloWorld. - [unknown location]

Hey all

I recently decided to evaluate Struts2 for a big project, but am having
difficulties mapping actions. I get the "There is no Action mapped..." error
when I try running the blank struts2 application.

Here's my example.xml

<package name="example" namespace="com/bubbleclip/web/example"
extends="struts-default">

        <action name="HelloWorld"
class="com.bubbleclip.web.example.HelloWorld">
            <result>/web/example/HelloWorld.jsp</result>
        </action>

        <action name="Login_*" method="{1}"
class="com.bubbleclip.web.example.Login">
            <result name="input">/example/Login.jsp</result>
            <result type="redirect-action">Menu</result>
        </action>

        <action name="*" class="com.bubbleclip.web.example.ExampleSupport">
            <result>/example/{1}.jsp</result>
        </action>

        <!-- Add actions here -->
    </package>

My directory tree looks like the following:
application/src/com/bubbleclip/web/example/ExampleSupport.java
application/src/com/bubbleclip/web/example/HelloWorld.java
application/src/com/bubbleclip/web/example/Login.java
application/src/com/bubbleclip/web/example/Login-validation.xml
application/src/com/bubbleclip/web/example/Package.properties
application/src/example.xml
application/src/struts.xml
application/web/index.html
application/web/example/HelloWorld.jsp
application/web/WEB-INF/web.xml
-- 
View this message in context: http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9353654
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: There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by ursuletza <ad...@yahoo.com>.
Hi, I am a new user here and I had the same preoblem with my aplication. I
wanted to display a table with some data taken from the database.
I tried to put my struts configuration file in WEB-APPS/classes but tomcat
gave me an error telling me that "filter dispatcher " dindn't find my
configuration files.

Here is the error I get: 
There is no Action mapped for action name comboboxTag. - [unknown location]

com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186)

org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)

org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)



Here is my directory structure:
new/core/action/comboboxTag.java
new/core/db/DbManager.java
new/core/db/Device.hava
new/core/db/device.hbm.xml
new/core/hibernate/HibernateSessionFactory.java
new/WEB-INF/lib
new/WEB-INF/struts.xml
new/WEB-INF/web.xml
new/index.html
new/comboboxTag.jsp
new/hibernate.cfg.xml

Here is my struts.xml:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_2_0.dtd">

<struts>

 <constant name="struts.enable.DynamicMethodInvocation" value="false" />
 <constant name="struts.devMode" value="true" />
    

<package name="action" namespace="core/action" extends="struts-default">

<action name="comboboxTag" class="core.action.comboboxTag">
 <result>comboboxTag.jsp</result>
</action>
</package>

</struts>



here is my web xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

    <display-name>Struts Blank</display-name>

    <filter>
        <filter-name>struts2</filter-name>
       
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>


    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>

</web-app>

I hope this information hels u to give me an answer. Thanx!



GEDA wrote:
> 
> Thanks a lot for the solution. It seems that many things are still not
> standardized and I simply got stuck for an entire day's work in order to
> find a solution for this problem. Thanks again.
> 

-- 
View this message in context: http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a12290493
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: There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by GEDA <ge...@gmail.com>.
Thanks a lot for the solution. It seems that many things are still not
standardized and I simply got stuck for an entire day's work in order to
find a solution for this problem. Thanks again.
-- 
View this message in context: http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a12090504
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: There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by boriskerzner <bk...@gmail.com>.
Thanks a lot. I figured that one out too... after 6 hours!! ;)


temp_checker wrote:
> 
> I had the same problem. In case you haven't already figured it out, simply
> moving my struts.xml from WEB-INF to WEB-INF/classes/ solved the problem.
> I hope it works for you.
> 
> 
> 
> boriskerzner wrote:
>> 
>> Hi. I setup Struts 2 on my computer and tried to run the HelloWorld
>> example, but am running into the same problem mentioned at the beginning
>> of this chain. Was the problem resolved? Any help would be greatly
>> appreciated. I am stuck. 
>> - Boris
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a11814885
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: There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by temp_checker <te...@yahoo.com>.
I had the same problem. In case you haven't already figured it out, simply
moving my struts.xml from WEB-INF to WEB-INF/classes/ solved the problem. I
hope it works for you.



boriskerzner wrote:
> 
> Hi. I setup Struts 2 on my computer and tried to run the HelloWorld
> example, but am running into the same problem mentioned at the beginning
> of this chain. Was the problem resolved? Any help would be greatly
> appreciated. I am stuck. 
> - Boris
> 

-- 
View this message in context: http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a11797734
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: There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by boriskerzner <bk...@gmail.com>.
Hi. I setup Struts 2 on my computer and tried to run the HelloWorld example,
but am running into the same problem mentioned at the beginning of this
chain. Was the problem resolved? Any help would be greatly appreciated. I am
stuck. 
- Boris
-- 
View this message in context: http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a11613031
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: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by meeboo <de...@gmail.com>.
There is nothing in the logs which hints a startup or request error, but as
soon as I click on "HelloWorld" under the "Actions in default" tab in
config-browser I get this stacktrace:

Expression extension is undefined on line 15, column 89 in
config-browser/showConfig.ftl.
The problematic instruction:
----------
==> ${extension} [on line 15, column 87 in config-browser/showConfig.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression extension is undefined
on line 15, column 89 in config-browser/showConfig.ftl.


Here's struts.xml:

<struts>
    <package name="/" extends="struts-default">
        <action name="HelloWorld"
class="com.bubbleclip.web.struts.HelloWorld">
            <result>/HelloWorld.jsp</result>
        </action>
        <!-- Add your actions here -->
    </package>
</struts>


I followed the HelloWorld example and have all the libraries present, so I
think it might boil down to my Java environment. I'm running Eclipse WTP
with Tomcat 5.5 as my local server. The odd thing is that I am getting this
error even when I try to click on the config-browser actions. 




Dave Newton-4 wrote:
> 
> Re-asking if there's anything in the logs that seems
> relevent both on startup and on the request? Also, if
> you're getting the freemarker error, look *before* the
> freemarker error in the log to see what the actual
> problem is (and turn devMode on).
> 
> d.
> 
> --- meeboo <de...@gmail.com> wrote:
> 
>> 
>> I tried using the maven archetype but still get the
>> same error (even with the
>> Config-browser plugin). Could someone maybe guide me
>> through the
>> configuration process for a simple Struts 2 hello
>> world application? I'm
>> having trouble grasping what the bare minimum amount
>> of files is to set up a
>> Struts 2 app (without Spring).
>> 
>> 
>> Ian Roughley wrote:
>> > 
>> > I recently fixed the starter maven archetype, it
>> might be a better 
>> > starting point.
>> > 
>> > /Ian
>> > 
>> > Musachy Barroso wrote:
>> >> well, something is quite broken :), do you get
>> any error log when you 
>> >> start
>> >> the app?
>> >>
>> >> musachy
>> >>
>> >> On 3/7/07, meeboo <de...@gmail.com> wrote:
>> >>>
>> >>>
>> >>> This might be well out of your reach, but I did
>> as you said and 
>> >>> downloaded
>> >>> the config browser plugin. Under namespaces I
>> can see
>> >>>
>> >>> default
>> >>> /config-browser
>> >>> /com/bubbleclip/web/example
>> >>>
>> >>> When I click one of the actions an exception
>> occurs and I am told that
>> >>>
>> >>> "FreeMarker template error!
>> >>>
>> >>> Expression extension is undefined on line 15,
>> column 89 in
>> >>> config-browser/showConfig.ftl.
>> >>> The problematic instruction:
>> >>> ----------
>> >>> ==&gt; ${extension} [on line 15, column 87 in
>> >>> config-browser/showConfig.ftl]"
>> >>>
>> >>> Is there a configuration error on my part
>> perhaps? Even the 
>> >>> config-browser
>> >>> actions show this exception.
>> >>>
>> >>>
>> >>>
>> >>> Musachy Barroso wrote:
>> >>> >
>> >>> > yes, that should be it. If you are
>> learning||having problems, you can
>> >>> use
>> >>> > the Struts Config browser plugin:
>> >>> >
>> >>> >
>>
> http://struts.apache.org/2.x/docs/config-browser-plugin.html
>> >>> >
>> >>> > to see the mapping of your actions and play
>> around with them.
>> >>> >
>> >>> > musachy
>> >>> >
>> >>> > On 3/7/07, meeboo <de...@gmail.com> wrote:
>> >>> >>
>> >>> >>
>> >>> >> Thanks for your quick reply, but I get a
>> >>> >>
>> >>> >> "HTTP Status 404 -
>> /com/bubbleclip/web/example/HelloWorld.action"
>> >>> >>
>> >>> >> When you typed "and access the action:" you
>> meant by typing
>> >>> >> 
>> >>>
>>
> localhost:8080/application/com/bubbleclip/web/example/HelloWorld.action
>> >>> >> as
>> >>> >> the browser URL right?
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> Musachy Barroso wrote:
>> >>> >> >
>> >>> >> > Try setting
>> namespace="/com/bubbleclip/web/example", in the 
>> >>> package,
>> >>> >> and
>> >>> >> > access the action:
>> >>> >> >
>> >>> >> >
>> {...}/com/bubbleclip/web/example/HelloWorld.action
>> >>> >> >
>> >>> >> > musachy
>> >>> >> >
>> >>> >> > On 3/7/07, meeboo <de...@gmail.com>
>> wrote:
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> Hey all
>> >>> >> >>
>> >>> >> >> I recently decided to evaluate Struts2 for
>> a big project, but am
>> >>> >> having
>> >>> >> >> difficulties mapping actions. I get the
>> "There is no Action
>> >>> mapped..."
>> >>> >> >> error
>> >>> >> >> when I try running the blank struts2
>> application.
>> >>> >> >>
>> >>> >> >> Here's my example.xml
>> >>> >> >>
>> >>> >> >> <package name="example"
>> namespace="com/bubbleclip/web/example"
>> >>> >> >> extends="struts-default">
>> >>> >> >>
>> >>> >> >>         <action name="HelloWorld"
>> >>> >> >>
>> class="com.bubbleclip.web.example.HelloWorld">
>> >>> >> >>            
>> <result>/web/example/HelloWorld.jsp</result>
>> >>> >> >>         </action>
>> >>> >> >>
>> >>> >> >>         <action name="Login_*"
>> method="{1}"
>> >>> >> >> class="com.bubbleclip.web.example.Login">
>> >>> >> >>             <result
>> name="input">/example/Login.jsp</result>
>> >>> >> >>             <result
>> type="redirect-action">Menu</result>
>> >>> >> >>         </action>
>> >>> >> >>
>> >>> >> >>         <action name="*" class="
>> >>> >> com.bubbleclip.web.example.ExampleSupport
>> >>> >> >> ">
>> >>> >> >>            
>> <result>/example/{1}.jsp</result>
>> >>> >> >>         </action>
>> >>> >> >>
>> >>> >> >>         <!-- Add actions here -->
>> >>> >> >>     </package>
>> >>> >> >>
>> >>> >> >> My directory tree looks like the
>> following:
>> >>> >> >>
>>
> application/src/com/bubbleclip/web/example/ExampleSupport.java
>> >>> >> >>
>>
> application/src/com/bubbleclip/web/example/HelloWorld.java
>> >>> >> >>
>>
> application/src/com/bubbleclip/web/example/Login.java
>> >>> >> >>
>>
> application/src/com/bubbleclip/web/example/Login-validation.xml
>> >>> >> >>
>>
> application/src/com/bubbleclip/web/example/Package.properties
>> >>> >> >> application/src/example.xml
>> >>> >> >> application/src/struts.xml
>> >>> >> >> application/web/index.html
>> >>> >> >> application/web/example/HelloWorld.jsp
>> >>> >> >> application/web/WEB-INF/web.xml
>> >>> >> >> --
>> >>> >> >> View this message in context:
>> >>> >> >>
>> >>> >>
>> >>>
>>
> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9353654
>> 
>> >>>
>> >>> >> >> 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
>> >>> >> >>
>> >>> >> >>
>> >>> >> >
>> >>> >> >
>> >>> >> > --
>> >>> >> > "Hey you! Would you help me to carry the
>> stone?" Pink Floyd
>> >>> >> >
>> >>> >> >
>> >>> >>
>> 
> === message truncated ===
> 
> 
> 
>  
> ____________________________________________________________________________________
> Get your own web address.  
> Have a HUGE year through Yahoo! Small Business.
> http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
> 
> ---------------------------------------------------------------------
> 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://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9394965
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: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by Dave Newton <ne...@yahoo.com>.
Re-asking if there's anything in the logs that seems
relevent both on startup and on the request? Also, if
you're getting the freemarker error, look *before* the
freemarker error in the log to see what the actual
problem is (and turn devMode on).

d.

--- meeboo <de...@gmail.com> wrote:

> 
> I tried using the maven archetype but still get the
> same error (even with the
> Config-browser plugin). Could someone maybe guide me
> through the
> configuration process for a simple Struts 2 hello
> world application? I'm
> having trouble grasping what the bare minimum amount
> of files is to set up a
> Struts 2 app (without Spring).
> 
> 
> Ian Roughley wrote:
> > 
> > I recently fixed the starter maven archetype, it
> might be a better 
> > starting point.
> > 
> > /Ian
> > 
> > Musachy Barroso wrote:
> >> well, something is quite broken :), do you get
> any error log when you 
> >> start
> >> the app?
> >>
> >> musachy
> >>
> >> On 3/7/07, meeboo <de...@gmail.com> wrote:
> >>>
> >>>
> >>> This might be well out of your reach, but I did
> as you said and 
> >>> downloaded
> >>> the config browser plugin. Under namespaces I
> can see
> >>>
> >>> default
> >>> /config-browser
> >>> /com/bubbleclip/web/example
> >>>
> >>> When I click one of the actions an exception
> occurs and I am told that
> >>>
> >>> "FreeMarker template error!
> >>>
> >>> Expression extension is undefined on line 15,
> column 89 in
> >>> config-browser/showConfig.ftl.
> >>> The problematic instruction:
> >>> ----------
> >>> ==&gt; ${extension} [on line 15, column 87 in
> >>> config-browser/showConfig.ftl]"
> >>>
> >>> Is there a configuration error on my part
> perhaps? Even the 
> >>> config-browser
> >>> actions show this exception.
> >>>
> >>>
> >>>
> >>> Musachy Barroso wrote:
> >>> >
> >>> > yes, that should be it. If you are
> learning||having problems, you can
> >>> use
> >>> > the Struts Config browser plugin:
> >>> >
> >>> >
>
http://struts.apache.org/2.x/docs/config-browser-plugin.html
> >>> >
> >>> > to see the mapping of your actions and play
> around with them.
> >>> >
> >>> > musachy
> >>> >
> >>> > On 3/7/07, meeboo <de...@gmail.com> wrote:
> >>> >>
> >>> >>
> >>> >> Thanks for your quick reply, but I get a
> >>> >>
> >>> >> "HTTP Status 404 -
> /com/bubbleclip/web/example/HelloWorld.action"
> >>> >>
> >>> >> When you typed "and access the action:" you
> meant by typing
> >>> >> 
> >>>
>
localhost:8080/application/com/bubbleclip/web/example/HelloWorld.action
> >>> >> as
> >>> >> the browser URL right?
> >>> >>
> >>> >>
> >>> >>
> >>> >> Musachy Barroso wrote:
> >>> >> >
> >>> >> > Try setting
> namespace="/com/bubbleclip/web/example", in the 
> >>> package,
> >>> >> and
> >>> >> > access the action:
> >>> >> >
> >>> >> >
> {...}/com/bubbleclip/web/example/HelloWorld.action
> >>> >> >
> >>> >> > musachy
> >>> >> >
> >>> >> > On 3/7/07, meeboo <de...@gmail.com>
> wrote:
> >>> >> >>
> >>> >> >>
> >>> >> >> Hey all
> >>> >> >>
> >>> >> >> I recently decided to evaluate Struts2 for
> a big project, but am
> >>> >> having
> >>> >> >> difficulties mapping actions. I get the
> "There is no Action
> >>> mapped..."
> >>> >> >> error
> >>> >> >> when I try running the blank struts2
> application.
> >>> >> >>
> >>> >> >> Here's my example.xml
> >>> >> >>
> >>> >> >> <package name="example"
> namespace="com/bubbleclip/web/example"
> >>> >> >> extends="struts-default">
> >>> >> >>
> >>> >> >>         <action name="HelloWorld"
> >>> >> >>
> class="com.bubbleclip.web.example.HelloWorld">
> >>> >> >>            
> <result>/web/example/HelloWorld.jsp</result>
> >>> >> >>         </action>
> >>> >> >>
> >>> >> >>         <action name="Login_*"
> method="{1}"
> >>> >> >> class="com.bubbleclip.web.example.Login">
> >>> >> >>             <result
> name="input">/example/Login.jsp</result>
> >>> >> >>             <result
> type="redirect-action">Menu</result>
> >>> >> >>         </action>
> >>> >> >>
> >>> >> >>         <action name="*" class="
> >>> >> com.bubbleclip.web.example.ExampleSupport
> >>> >> >> ">
> >>> >> >>            
> <result>/example/{1}.jsp</result>
> >>> >> >>         </action>
> >>> >> >>
> >>> >> >>         <!-- Add actions here -->
> >>> >> >>     </package>
> >>> >> >>
> >>> >> >> My directory tree looks like the
> following:
> >>> >> >>
>
application/src/com/bubbleclip/web/example/ExampleSupport.java
> >>> >> >>
>
application/src/com/bubbleclip/web/example/HelloWorld.java
> >>> >> >>
>
application/src/com/bubbleclip/web/example/Login.java
> >>> >> >>
>
application/src/com/bubbleclip/web/example/Login-validation.xml
> >>> >> >>
>
application/src/com/bubbleclip/web/example/Package.properties
> >>> >> >> application/src/example.xml
> >>> >> >> application/src/struts.xml
> >>> >> >> application/web/index.html
> >>> >> >> application/web/example/HelloWorld.jsp
> >>> >> >> application/web/WEB-INF/web.xml
> >>> >> >> --
> >>> >> >> View this message in context:
> >>> >> >>
> >>> >>
> >>>
>
http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9353654
> 
> >>>
> >>> >> >> 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
> >>> >> >>
> >>> >> >>
> >>> >> >
> >>> >> >
> >>> >> > --
> >>> >> > "Hey you! Would you help me to carry the
> stone?" Pink Floyd
> >>> >> >
> >>> >> >
> >>> >>
> 
=== message truncated ===



 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

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


Re: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by meeboo <de...@gmail.com>.
I tried using the maven archetype but still get the same error (even with the
Config-browser plugin). Could someone maybe guide me through the
configuration process for a simple Struts 2 hello world application? I'm
having trouble grasping what the bare minimum amount of files is to set up a
Struts 2 app (without Spring).


Ian Roughley wrote:
> 
> I recently fixed the starter maven archetype, it might be a better 
> starting point.
> 
> /Ian
> 
> Musachy Barroso wrote:
>> well, something is quite broken :), do you get any error log when you 
>> start
>> the app?
>>
>> musachy
>>
>> On 3/7/07, meeboo <de...@gmail.com> wrote:
>>>
>>>
>>> This might be well out of your reach, but I did as you said and 
>>> downloaded
>>> the config browser plugin. Under namespaces I can see
>>>
>>> default
>>> /config-browser
>>> /com/bubbleclip/web/example
>>>
>>> When I click one of the actions an exception occurs and I am told that
>>>
>>> "FreeMarker template error!
>>>
>>> Expression extension is undefined on line 15, column 89 in
>>> config-browser/showConfig.ftl.
>>> The problematic instruction:
>>> ----------
>>> ==&gt; ${extension} [on line 15, column 87 in
>>> config-browser/showConfig.ftl]"
>>>
>>> Is there a configuration error on my part perhaps? Even the 
>>> config-browser
>>> actions show this exception.
>>>
>>>
>>>
>>> Musachy Barroso wrote:
>>> >
>>> > yes, that should be it. If you are learning||having problems, you can
>>> use
>>> > the Struts Config browser plugin:
>>> >
>>> > http://struts.apache.org/2.x/docs/config-browser-plugin.html
>>> >
>>> > to see the mapping of your actions and play around with them.
>>> >
>>> > musachy
>>> >
>>> > On 3/7/07, meeboo <de...@gmail.com> wrote:
>>> >>
>>> >>
>>> >> Thanks for your quick reply, but I get a
>>> >>
>>> >> "HTTP Status 404 - /com/bubbleclip/web/example/HelloWorld.action"
>>> >>
>>> >> When you typed "and access the action:" you meant by typing
>>> >> 
>>> localhost:8080/application/com/bubbleclip/web/example/HelloWorld.action
>>> >> as
>>> >> the browser URL right?
>>> >>
>>> >>
>>> >>
>>> >> Musachy Barroso wrote:
>>> >> >
>>> >> > Try setting namespace="/com/bubbleclip/web/example", in the 
>>> package,
>>> >> and
>>> >> > access the action:
>>> >> >
>>> >> > {...}/com/bubbleclip/web/example/HelloWorld.action
>>> >> >
>>> >> > musachy
>>> >> >
>>> >> > On 3/7/07, meeboo <de...@gmail.com> wrote:
>>> >> >>
>>> >> >>
>>> >> >> Hey all
>>> >> >>
>>> >> >> I recently decided to evaluate Struts2 for a big project, but am
>>> >> having
>>> >> >> difficulties mapping actions. I get the "There is no Action
>>> mapped..."
>>> >> >> error
>>> >> >> when I try running the blank struts2 application.
>>> >> >>
>>> >> >> Here's my example.xml
>>> >> >>
>>> >> >> <package name="example" namespace="com/bubbleclip/web/example"
>>> >> >> extends="struts-default">
>>> >> >>
>>> >> >>         <action name="HelloWorld"
>>> >> >> class="com.bubbleclip.web.example.HelloWorld">
>>> >> >>             <result>/web/example/HelloWorld.jsp</result>
>>> >> >>         </action>
>>> >> >>
>>> >> >>         <action name="Login_*" method="{1}"
>>> >> >> class="com.bubbleclip.web.example.Login">
>>> >> >>             <result name="input">/example/Login.jsp</result>
>>> >> >>             <result type="redirect-action">Menu</result>
>>> >> >>         </action>
>>> >> >>
>>> >> >>         <action name="*" class="
>>> >> com.bubbleclip.web.example.ExampleSupport
>>> >> >> ">
>>> >> >>             <result>/example/{1}.jsp</result>
>>> >> >>         </action>
>>> >> >>
>>> >> >>         <!-- Add actions here -->
>>> >> >>     </package>
>>> >> >>
>>> >> >> My directory tree looks like the following:
>>> >> >> application/src/com/bubbleclip/web/example/ExampleSupport.java
>>> >> >> application/src/com/bubbleclip/web/example/HelloWorld.java
>>> >> >> application/src/com/bubbleclip/web/example/Login.java
>>> >> >> application/src/com/bubbleclip/web/example/Login-validation.xml
>>> >> >> application/src/com/bubbleclip/web/example/Package.properties
>>> >> >> application/src/example.xml
>>> >> >> application/src/struts.xml
>>> >> >> application/web/index.html
>>> >> >> application/web/example/HelloWorld.jsp
>>> >> >> application/web/WEB-INF/web.xml
>>> >> >> --
>>> >> >> View this message in context:
>>> >> >>
>>> >>
>>> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9353654 
>>>
>>> >> >> 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
>>> >> >>
>>> >> >>
>>> >> >
>>> >> >
>>> >> > --
>>> >> > "Hey you! Would you help me to carry the stone?" Pink Floyd
>>> >> >
>>> >> >
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9354348 
>>>
>>> >> 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
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > "Hey you! Would you help me to carry the stone?" Pink Floyd
>>> >
>>> >
>>>
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9355632 
>>>
>>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9372285
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: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by Ian Roughley <ia...@fdar.com>.
I recently fixed the starter maven archetype, it might be a better 
starting point.

/Ian

Musachy Barroso wrote:
> well, something is quite broken :), do you get any error log when you 
> start
> the app?
>
> musachy
>
> On 3/7/07, meeboo <de...@gmail.com> wrote:
>>
>>
>> This might be well out of your reach, but I did as you said and 
>> downloaded
>> the config browser plugin. Under namespaces I can see
>>
>> default
>> /config-browser
>> /com/bubbleclip/web/example
>>
>> When I click one of the actions an exception occurs and I am told that
>>
>> "FreeMarker template error!
>>
>> Expression extension is undefined on line 15, column 89 in
>> config-browser/showConfig.ftl.
>> The problematic instruction:
>> ----------
>> ==&gt; ${extension} [on line 15, column 87 in
>> config-browser/showConfig.ftl]"
>>
>> Is there a configuration error on my part perhaps? Even the 
>> config-browser
>> actions show this exception.
>>
>>
>>
>> Musachy Barroso wrote:
>> >
>> > yes, that should be it. If you are learning||having problems, you can
>> use
>> > the Struts Config browser plugin:
>> >
>> > http://struts.apache.org/2.x/docs/config-browser-plugin.html
>> >
>> > to see the mapping of your actions and play around with them.
>> >
>> > musachy
>> >
>> > On 3/7/07, meeboo <de...@gmail.com> wrote:
>> >>
>> >>
>> >> Thanks for your quick reply, but I get a
>> >>
>> >> "HTTP Status 404 - /com/bubbleclip/web/example/HelloWorld.action"
>> >>
>> >> When you typed "and access the action:" you meant by typing
>> >> 
>> localhost:8080/application/com/bubbleclip/web/example/HelloWorld.action
>> >> as
>> >> the browser URL right?
>> >>
>> >>
>> >>
>> >> Musachy Barroso wrote:
>> >> >
>> >> > Try setting namespace="/com/bubbleclip/web/example", in the 
>> package,
>> >> and
>> >> > access the action:
>> >> >
>> >> > {...}/com/bubbleclip/web/example/HelloWorld.action
>> >> >
>> >> > musachy
>> >> >
>> >> > On 3/7/07, meeboo <de...@gmail.com> wrote:
>> >> >>
>> >> >>
>> >> >> Hey all
>> >> >>
>> >> >> I recently decided to evaluate Struts2 for a big project, but am
>> >> having
>> >> >> difficulties mapping actions. I get the "There is no Action
>> mapped..."
>> >> >> error
>> >> >> when I try running the blank struts2 application.
>> >> >>
>> >> >> Here's my example.xml
>> >> >>
>> >> >> <package name="example" namespace="com/bubbleclip/web/example"
>> >> >> extends="struts-default">
>> >> >>
>> >> >>         <action name="HelloWorld"
>> >> >> class="com.bubbleclip.web.example.HelloWorld">
>> >> >>             <result>/web/example/HelloWorld.jsp</result>
>> >> >>         </action>
>> >> >>
>> >> >>         <action name="Login_*" method="{1}"
>> >> >> class="com.bubbleclip.web.example.Login">
>> >> >>             <result name="input">/example/Login.jsp</result>
>> >> >>             <result type="redirect-action">Menu</result>
>> >> >>         </action>
>> >> >>
>> >> >>         <action name="*" class="
>> >> com.bubbleclip.web.example.ExampleSupport
>> >> >> ">
>> >> >>             <result>/example/{1}.jsp</result>
>> >> >>         </action>
>> >> >>
>> >> >>         <!-- Add actions here -->
>> >> >>     </package>
>> >> >>
>> >> >> My directory tree looks like the following:
>> >> >> application/src/com/bubbleclip/web/example/ExampleSupport.java
>> >> >> application/src/com/bubbleclip/web/example/HelloWorld.java
>> >> >> application/src/com/bubbleclip/web/example/Login.java
>> >> >> application/src/com/bubbleclip/web/example/Login-validation.xml
>> >> >> application/src/com/bubbleclip/web/example/Package.properties
>> >> >> application/src/example.xml
>> >> >> application/src/struts.xml
>> >> >> application/web/index.html
>> >> >> application/web/example/HelloWorld.jsp
>> >> >> application/web/WEB-INF/web.xml
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9353654 
>>
>> >> >> 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
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > --
>> >> > "Hey you! Would you help me to carry the stone?" Pink Floyd
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9354348 
>>
>> >> 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
>> >>
>> >>
>> >
>> >
>> > --
>> > "Hey you! Would you help me to carry the stone?" Pink Floyd
>> >
>> >
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9355632 
>>
>> 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: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by Musachy Barroso <mu...@gmail.com>.
well, something is quite broken :), do you get any error log when you start
the app?

musachy

On 3/7/07, meeboo <de...@gmail.com> wrote:
>
>
> This might be well out of your reach, but I did as you said and downloaded
> the config browser plugin. Under namespaces I can see
>
> default
> /config-browser
> /com/bubbleclip/web/example
>
> When I click one of the actions an exception occurs and I am told that
>
> "FreeMarker template error!
>
> Expression extension is undefined on line 15, column 89 in
> config-browser/showConfig.ftl.
> The problematic instruction:
> ----------
> ==&gt; ${extension} [on line 15, column 87 in
> config-browser/showConfig.ftl]"
>
> Is there a configuration error on my part perhaps? Even the config-browser
> actions show this exception.
>
>
>
> Musachy Barroso wrote:
> >
> > yes, that should be it. If you are learning||having problems, you can
> use
> > the Struts Config browser plugin:
> >
> > http://struts.apache.org/2.x/docs/config-browser-plugin.html
> >
> > to see the mapping of your actions and play around with them.
> >
> > musachy
> >
> > On 3/7/07, meeboo <de...@gmail.com> wrote:
> >>
> >>
> >> Thanks for your quick reply, but I get a
> >>
> >> "HTTP Status 404 - /com/bubbleclip/web/example/HelloWorld.action"
> >>
> >> When you typed "and access the action:" you meant by typing
> >> localhost:8080/application/com/bubbleclip/web/example/HelloWorld.action
> >> as
> >> the browser URL right?
> >>
> >>
> >>
> >> Musachy Barroso wrote:
> >> >
> >> > Try setting namespace="/com/bubbleclip/web/example", in the package,
> >> and
> >> > access the action:
> >> >
> >> > {...}/com/bubbleclip/web/example/HelloWorld.action
> >> >
> >> > musachy
> >> >
> >> > On 3/7/07, meeboo <de...@gmail.com> wrote:
> >> >>
> >> >>
> >> >> Hey all
> >> >>
> >> >> I recently decided to evaluate Struts2 for a big project, but am
> >> having
> >> >> difficulties mapping actions. I get the "There is no Action
> mapped..."
> >> >> error
> >> >> when I try running the blank struts2 application.
> >> >>
> >> >> Here's my example.xml
> >> >>
> >> >> <package name="example" namespace="com/bubbleclip/web/example"
> >> >> extends="struts-default">
> >> >>
> >> >>         <action name="HelloWorld"
> >> >> class="com.bubbleclip.web.example.HelloWorld">
> >> >>             <result>/web/example/HelloWorld.jsp</result>
> >> >>         </action>
> >> >>
> >> >>         <action name="Login_*" method="{1}"
> >> >> class="com.bubbleclip.web.example.Login">
> >> >>             <result name="input">/example/Login.jsp</result>
> >> >>             <result type="redirect-action">Menu</result>
> >> >>         </action>
> >> >>
> >> >>         <action name="*" class="
> >> com.bubbleclip.web.example.ExampleSupport
> >> >> ">
> >> >>             <result>/example/{1}.jsp</result>
> >> >>         </action>
> >> >>
> >> >>         <!-- Add actions here -->
> >> >>     </package>
> >> >>
> >> >> My directory tree looks like the following:
> >> >> application/src/com/bubbleclip/web/example/ExampleSupport.java
> >> >> application/src/com/bubbleclip/web/example/HelloWorld.java
> >> >> application/src/com/bubbleclip/web/example/Login.java
> >> >> application/src/com/bubbleclip/web/example/Login-validation.xml
> >> >> application/src/com/bubbleclip/web/example/Package.properties
> >> >> application/src/example.xml
> >> >> application/src/struts.xml
> >> >> application/web/index.html
> >> >> application/web/example/HelloWorld.jsp
> >> >> application/web/WEB-INF/web.xml
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9353654
> >> >> 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
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9354348
> >> 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
> >>
> >>
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9355632
> 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
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Re: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by meeboo <de...@gmail.com>.
This might be well out of your reach, but I did as you said and downloaded
the config browser plugin. Under namespaces I can see

default
/config-browser
/com/bubbleclip/web/example

When I click one of the actions an exception occurs and I am told that

"FreeMarker template error!

Expression extension is undefined on line 15, column 89 in
config-browser/showConfig.ftl.
The problematic instruction:
----------
==&gt; ${extension} [on line 15, column 87 in
config-browser/showConfig.ftl]"

Is there a configuration error on my part perhaps? Even the config-browser
actions show this exception. 



Musachy Barroso wrote:
> 
> yes, that should be it. If you are learning||having problems, you can use
> the Struts Config browser plugin:
> 
> http://struts.apache.org/2.x/docs/config-browser-plugin.html
> 
> to see the mapping of your actions and play around with them.
> 
> musachy
> 
> On 3/7/07, meeboo <de...@gmail.com> wrote:
>>
>>
>> Thanks for your quick reply, but I get a
>>
>> "HTTP Status 404 - /com/bubbleclip/web/example/HelloWorld.action"
>>
>> When you typed "and access the action:" you meant by typing
>> localhost:8080/application/com/bubbleclip/web/example/HelloWorld.action
>> as
>> the browser URL right?
>>
>>
>>
>> Musachy Barroso wrote:
>> >
>> > Try setting namespace="/com/bubbleclip/web/example", in the package,
>> and
>> > access the action:
>> >
>> > {...}/com/bubbleclip/web/example/HelloWorld.action
>> >
>> > musachy
>> >
>> > On 3/7/07, meeboo <de...@gmail.com> wrote:
>> >>
>> >>
>> >> Hey all
>> >>
>> >> I recently decided to evaluate Struts2 for a big project, but am
>> having
>> >> difficulties mapping actions. I get the "There is no Action mapped..."
>> >> error
>> >> when I try running the blank struts2 application.
>> >>
>> >> Here's my example.xml
>> >>
>> >> <package name="example" namespace="com/bubbleclip/web/example"
>> >> extends="struts-default">
>> >>
>> >>         <action name="HelloWorld"
>> >> class="com.bubbleclip.web.example.HelloWorld">
>> >>             <result>/web/example/HelloWorld.jsp</result>
>> >>         </action>
>> >>
>> >>         <action name="Login_*" method="{1}"
>> >> class="com.bubbleclip.web.example.Login">
>> >>             <result name="input">/example/Login.jsp</result>
>> >>             <result type="redirect-action">Menu</result>
>> >>         </action>
>> >>
>> >>         <action name="*" class="
>> com.bubbleclip.web.example.ExampleSupport
>> >> ">
>> >>             <result>/example/{1}.jsp</result>
>> >>         </action>
>> >>
>> >>         <!-- Add actions here -->
>> >>     </package>
>> >>
>> >> My directory tree looks like the following:
>> >> application/src/com/bubbleclip/web/example/ExampleSupport.java
>> >> application/src/com/bubbleclip/web/example/HelloWorld.java
>> >> application/src/com/bubbleclip/web/example/Login.java
>> >> application/src/com/bubbleclip/web/example/Login-validation.xml
>> >> application/src/com/bubbleclip/web/example/Package.properties
>> >> application/src/example.xml
>> >> application/src/struts.xml
>> >> application/web/index.html
>> >> application/web/example/HelloWorld.jsp
>> >> application/web/WEB-INF/web.xml
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9353654
>> >> 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
>> >>
>> >>
>> >
>> >
>> > --
>> > "Hey you! Would you help me to carry the stone?" Pink Floyd
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9354348
>> 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
>>
>>
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> 

-- 
View this message in context: http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9355632
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: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by Musachy Barroso <mu...@gmail.com>.
yes, that should be it. If you are learning||having problems, you can use
the Struts Config browser plugin:

http://struts.apache.org/2.x/docs/config-browser-plugin.html

to see the mapping of your actions and play around with them.

musachy

On 3/7/07, meeboo <de...@gmail.com> wrote:
>
>
> Thanks for your quick reply, but I get a
>
> "HTTP Status 404 - /com/bubbleclip/web/example/HelloWorld.action"
>
> When you typed "and access the action:" you meant by typing
> localhost:8080/application/com/bubbleclip/web/example/HelloWorld.action as
> the browser URL right?
>
>
>
> Musachy Barroso wrote:
> >
> > Try setting namespace="/com/bubbleclip/web/example", in the package, and
> > access the action:
> >
> > {...}/com/bubbleclip/web/example/HelloWorld.action
> >
> > musachy
> >
> > On 3/7/07, meeboo <de...@gmail.com> wrote:
> >>
> >>
> >> Hey all
> >>
> >> I recently decided to evaluate Struts2 for a big project, but am having
> >> difficulties mapping actions. I get the "There is no Action mapped..."
> >> error
> >> when I try running the blank struts2 application.
> >>
> >> Here's my example.xml
> >>
> >> <package name="example" namespace="com/bubbleclip/web/example"
> >> extends="struts-default">
> >>
> >>         <action name="HelloWorld"
> >> class="com.bubbleclip.web.example.HelloWorld">
> >>             <result>/web/example/HelloWorld.jsp</result>
> >>         </action>
> >>
> >>         <action name="Login_*" method="{1}"
> >> class="com.bubbleclip.web.example.Login">
> >>             <result name="input">/example/Login.jsp</result>
> >>             <result type="redirect-action">Menu</result>
> >>         </action>
> >>
> >>         <action name="*" class="
> com.bubbleclip.web.example.ExampleSupport
> >> ">
> >>             <result>/example/{1}.jsp</result>
> >>         </action>
> >>
> >>         <!-- Add actions here -->
> >>     </package>
> >>
> >> My directory tree looks like the following:
> >> application/src/com/bubbleclip/web/example/ExampleSupport.java
> >> application/src/com/bubbleclip/web/example/HelloWorld.java
> >> application/src/com/bubbleclip/web/example/Login.java
> >> application/src/com/bubbleclip/web/example/Login-validation.xml
> >> application/src/com/bubbleclip/web/example/Package.properties
> >> application/src/example.xml
> >> application/src/struts.xml
> >> application/web/index.html
> >> application/web/example/HelloWorld.jsp
> >> application/web/WEB-INF/web.xml
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9353654
> >> 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
> >>
> >>
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9354348
> 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
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Re: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by meeboo <de...@gmail.com>.
Thanks for your quick reply, but I get a 

"HTTP Status 404 - /com/bubbleclip/web/example/HelloWorld.action"

When you typed "and access the action:" you meant by typing
localhost:8080/application/com/bubbleclip/web/example/HelloWorld.action as
the browser URL right?



Musachy Barroso wrote:
> 
> Try setting namespace="/com/bubbleclip/web/example", in the package, and
> access the action:
> 
> {...}/com/bubbleclip/web/example/HelloWorld.action
> 
> musachy
> 
> On 3/7/07, meeboo <de...@gmail.com> wrote:
>>
>>
>> Hey all
>>
>> I recently decided to evaluate Struts2 for a big project, but am having
>> difficulties mapping actions. I get the "There is no Action mapped..."
>> error
>> when I try running the blank struts2 application.
>>
>> Here's my example.xml
>>
>> <package name="example" namespace="com/bubbleclip/web/example"
>> extends="struts-default">
>>
>>         <action name="HelloWorld"
>> class="com.bubbleclip.web.example.HelloWorld">
>>             <result>/web/example/HelloWorld.jsp</result>
>>         </action>
>>
>>         <action name="Login_*" method="{1}"
>> class="com.bubbleclip.web.example.Login">
>>             <result name="input">/example/Login.jsp</result>
>>             <result type="redirect-action">Menu</result>
>>         </action>
>>
>>         <action name="*" class="com.bubbleclip.web.example.ExampleSupport
>> ">
>>             <result>/example/{1}.jsp</result>
>>         </action>
>>
>>         <!-- Add actions here -->
>>     </package>
>>
>> My directory tree looks like the following:
>> application/src/com/bubbleclip/web/example/ExampleSupport.java
>> application/src/com/bubbleclip/web/example/HelloWorld.java
>> application/src/com/bubbleclip/web/example/Login.java
>> application/src/com/bubbleclip/web/example/Login-validation.xml
>> application/src/com/bubbleclip/web/example/Package.properties
>> application/src/example.xml
>> application/src/struts.xml
>> application/web/index.html
>> application/web/example/HelloWorld.jsp
>> application/web/WEB-INF/web.xml
>> --
>> View this message in context:
>> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9353654
>> 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
>>
>>
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> 

-- 
View this message in context: http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9354348
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: There is no Action mapped for action name HelloWorld. - [unknown location]

Posted by Musachy Barroso <mu...@gmail.com>.
Try setting namespace="/com/bubbleclip/web/example", in the package, and
access the action:

{...}/com/bubbleclip/web/example/HelloWorld.action

musachy

On 3/7/07, meeboo <de...@gmail.com> wrote:
>
>
> Hey all
>
> I recently decided to evaluate Struts2 for a big project, but am having
> difficulties mapping actions. I get the "There is no Action mapped..."
> error
> when I try running the blank struts2 application.
>
> Here's my example.xml
>
> <package name="example" namespace="com/bubbleclip/web/example"
> extends="struts-default">
>
>         <action name="HelloWorld"
> class="com.bubbleclip.web.example.HelloWorld">
>             <result>/web/example/HelloWorld.jsp</result>
>         </action>
>
>         <action name="Login_*" method="{1}"
> class="com.bubbleclip.web.example.Login">
>             <result name="input">/example/Login.jsp</result>
>             <result type="redirect-action">Menu</result>
>         </action>
>
>         <action name="*" class="com.bubbleclip.web.example.ExampleSupport
> ">
>             <result>/example/{1}.jsp</result>
>         </action>
>
>         <!-- Add actions here -->
>     </package>
>
> My directory tree looks like the following:
> application/src/com/bubbleclip/web/example/ExampleSupport.java
> application/src/com/bubbleclip/web/example/HelloWorld.java
> application/src/com/bubbleclip/web/example/Login.java
> application/src/com/bubbleclip/web/example/Login-validation.xml
> application/src/com/bubbleclip/web/example/Package.properties
> application/src/example.xml
> application/src/struts.xml
> application/web/index.html
> application/web/example/HelloWorld.jsp
> application/web/WEB-INF/web.xml
> --
> View this message in context:
> http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.----unknown-location--tf3362312.html#a9353654
> 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
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd