/**
 * @struts:form name="LoginForm"
 *
 * Form bean for the Login main page.  There are two
fields on this
 * form used for authentication
 * <ul>
 * <li>username - the username to login
 * <li>password - the password to authenticate
 * </ul>
 */
public final class LoginForm extends ActionForm  {

Note you said name="LoginForm" here.



/**
 * @struts:action       path="/login"
 *                      name="LoginAction"
 *                      scope="request"
 *                      input="/index.jsp"
 *                      validate="false"
 *                      redirect="false"
 * @struts:action-forward       name="success"
path="/Welcome.jsp"   
 *                              redirect="false"
 * @struts:action-forward       name="failure"
path="/Login.jsp"
 *                              redirect="false"
 *
 * <strong>LoginAction</strong> demonstrates how an
action class is called within the struts framework
 * For the purposes of this sample, we simple
demonstrate how the perform is called,
 * a sample action, and a return
 *
 [EMAIL PROTECTED] Sue Spielman Switchback Software LLC
www.switchbacksoftware.com
 */
public class LoginAction extends AbstStrutsActionBase

And you have name="LoginAction" here. You need to tie it to the form declared above.... name="LoginForm".


Erik

p.s. No offense to my good friend Sue, but that is some ugly Struts! (validation in form bean, unnecessary reset, not using J2EE security) Use critical thinking when adopting Struts code examples - I see more bad examples than good out there.



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to