I found out that the problem was getting the mapping.getInput() The login page used a struts form as you can see from the struts-config file. However 5, 6, n number of pages later when the user tried to go to login.do struts would look for the input for that ActionMapping which most likely did not have one because only a few pages on my site have forms hence input attributes on the struts-config. So my solution was to not use struts form feature on the login page and just grab the values from the form off of the reqeust.
Kris Pete Carapetyan wrote: > I have had this same problem with frames, but my frame was on one server and the > called login form was on another. As soon as I got them coming from the same box, > everything worked fine. > > Don't know if that is your problem. > > Kris Thompson wrote: > > > First off, I am using Frames. After I login, and forever after that > > point, my url stays the same because of frames. It says > > http://bla.bla.com/bla/login.do. Problem is if someone bookmarks this > > page and trys to hit it (even while the session is valid) I get the > > following error. > > > > Error: 500 > > > > Location: /gcc/login.do > > > > Cannot get request dispatcher for path login.jsp > > > > Below is the action from the struts config for that action > > > > <action name="loginForm" scope="request" path="/login" unknown="false" > > type="com.LoginAction" input="login.jsp"> > > <forward name="success" path="/main.jsp" /> > > <forward name="failure" path="/badlogin.jsp" /> > > </action> > > > > It appears that struts cannot find the "request" that has come from > > login.jsp. The only work around that I know of would be to not use > > struts forms for this function. > > > > Kris Thompson > > > > -- > > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- > Pete Carapetyan > http://datafundamentals.com > Java Development Services > > Open standards technology for commercial profitability > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>