The problem basically is that your ERROR result is not working. Since you have a relative path in your struts configuration (<result name="error">error.jsp</result>) so Struts is looking for error.jsp in abc folder at the root of your application. If error.jsp is at the root of your application (i.e. accessible via the URL http://localhost:8080/My/error.jsp), then you should change the configuration to an absolute URL like
Your "showLogin" action is in a package that does not extend the struts-default package.
*Please* take care when reading your configuration files (and indent them properly). Right now you're just typing in random things hoping it will work.
Take a step back. Start small. Get that to work, then try to add functionality.
but still i can't run action name aruna.
can you tell me how to run action name aruna.other both actions are working.i tried many times.
but still action aruna not working?
You need to slow yourself down and start *thinking* about what you're doing, what I'm saying, what the documentation says, how you've configured your application.
David Newton wrote:The "aruna" action is in the package with the "/abc" namespace, just like the other action.
ok.ok thanks.
now it is ok
anyway if you know please let me a Struts Reference
it is better step by step practical one other than all theory one.
Now i am using Manning in Action book and http://www.coreservlets.com/ site.
Struts 2 in Action is a perfectly fine book; it's not just "theory". My book is okay, but the second half of the book isn't Struts 2-specific. Budi's book is pretty good. Both the S2iA and Budi's book are Struts 2.0, mine is Struts 2.1. The Struts 2 documentation wiki covers most everything, and is *entirely* practical, but only small parts of it are tutorial in nature: