So I changed the code to
<label for="name">Please enter your name</label><br/>
<input type="text" name="name"/>
<input type="submit" value="Say Hello"/>
Which gave me a better error, "There is no Action mapped for namespace / and action name hello." I am sure I need to add some attribute namespace in struts.xml and finally I can comeover this error(cause, I got the same error in the past, and I finally did some modifications to make the program execute)
Now my question is
1. Is this legal??
If so why is my program not executing in this way?? Is it some versions problem??
There is no Action mapped for namespace / and action name hello.
if this is the error then check whether you have placed struts.xml in classpath or not if in eclipse check whether you put it in src folder or not.
check log after server start up whether it is being loaded or not.
use struts 2 tag lib and check the page view source whether action has been appended by tag lib during translation.