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 <deepstar@(protected):
>
>
> 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 <deepstar@(protected):
> >>
> >>
> >> 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@(protected)
> >> For additional commands, e-mail: user-help@(protected)
> >>
> >>
> >
> >
> > --
> > "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@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd