Hi,
I get the following message "No configuration found for the specified action : 'doLogin' in namespace: '/actions'" when I try to submit login.jsp page containing username and password as input fields and submit button.
login.jsp:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>
test</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Rational Application Developer">
</head>
<body>
<s:form action="doLogin">
<tr>
<td colspan="2">
Login
</td>
</tr>
<tr>
<td colspan="2">
<s:actionerror />
<s:fielderror />
</td>
</tr>
<s:textfield name="username" label="Login name"/>
<s
assword name="password" label="Password"/>
<s:submit value="Login" align="center"/>
</s:form>
</body>
</html>
struts.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE
struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="true" />
<!-- Add packages here -->
<package name="actions" namespace="/" extends="struts-default">
<action name="doLogin" class="actions.Login">
<result name="input">/actions/login.jsp</result>
<result name="error">/actions/login.jsp</result>
<result>/actions/loginsuccess.jsp</result>
</action>
</package>
</struts>
Also the struts.xml files is directly under WEB-INF/classes folder.