I want to know that when the result="input" is matched.
I have an Index.jsp page there I have a link to Login.jsp
when I click on login link Login page appears now after filling the login page and clicking on submit button my LoginAction class is called and returns success on successful validation else returns error.
so my doubt is in the struts.xml why we add Please clarify my doubt and If any thing else is required to make my question clear then Please tell me.
Now David in the above mapping of result if the action class returns "error then the framework will map the result with name="error" so why there is a result name="input" and when this will be matched by framework
I already told you: "input" is returned by the framework on validation errors.
If you're not using the validation framework, and no action methods return "input", then I have no idea why you'd define an "input" result--only whoever put it in there can answer that.