|
I am new to struts2. I have created a sample helloworld application.When i run the application i got the following error.
HTTP Status 404 - There is no Action mapped for namespace / and action name .
my login.jsp file is
<s:form action="login" method="post" > <s:textfield name="username" key="username"></s:textfield> <s:submit ></s:submit>
</s:form>
struts.xml file is
<package name="default" extends="struts-default" > <action name="login"
class="net.vir.struts2.CurrencyConverter" namspace="/"> <result name="success">Welcome.jsp</result> <result name="error">login.jsp</result> </action>
</package>
give me any help.
|