I added code to print the input path to the console and it appears to be correct. The
page is in the root so it is simply "/login.jsp".
>Check the path given for the jsp in the input...
>
>-----Original Message-----
>From: Aaron Crandall [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, June 26, 2001 5:26 AM
>To: [EMAIL PROTECTED]
>Subject: Cannot get request dispatcher for path login.jsp
>
>
>Hello all,
>
>I began to get the above error after adding validation code to my LoginForm
>bean. Detail below:
>
>I have recently begun to setup a simple struts web. I have a login page
>(login.jsp), an action servlet (LoginAction) and a form (LoginForm). I
>placed some simple validation in the LoginAction "perform()" method and
>everything worked fine (if successful, the user was forwarded to a menu.jsp
>page, if not they were sent back to login.jsp).
>
>However, when I moved some validation into the form itself, so that I could
>display error messages, I began to get the "Cannot get request dispatcher
>for path login.jsp" error. Isn't the user supposed to be sent back to the
>"input" page if validate() returns errors? Why can't it find the login.jsp
>page?
>
>Thanks in advance for any help!
>
>Aaron