Thank you, but the page changePasswordConfirmed.jsp does only contain
static information so I don't have to put objcts in the session. And
yes, I do want to have redirect=true. So I still don't know how to
solve the problem.
Och visst är det lite kul att träffa på fler svenskar här minsann :)
/ Ulrika

--- In [EMAIL PROTECTED], Mikael Eriksson <[EMAIL PROTECTED]> wrote:
>
> Hi
>
>  The config looks good to me (except a spurions =" in the forward
> but I assume that is a copy paste error).
>
> Since it works when redirect is not true a long shot might be
> that it is your Error page that is not found. At least if
> you are putting something in the request inside your action
> class and looking for it in the page.
>
> Possible scenario with redirect
>    Action class puts stuff in request
>    Redirect goes to browser, new request object without stuff
>    Page called, tries to find stuff in request
>      fails to do that... exception, resends to error page
>    Error page not found
>    404 to browser
>
> Hmm, on the other hand you write that giving the page url
> directly in the browser works and if the request-object theory
> is correct that should not work either.
>
> If it is something with the request you could either try to
> put the object into the session instead or avoid the redirect
> if that can be done.
>
>  Regards
>  Mikael
>
> PS
>  Good to see more Swedes on this list :-)
> DS
>
> >Hi,
> >
> >This is how struts-config looks like
> >
> > <action path="/ChangePassword/doChangePassword"
> >
> >type="se.amfpension.prototyp.action.DoChangePasswordAction"
> >                     name="changePasswordForm"
> >                     scope="request"
> >                     input="/ChangePassword/changePassword.jsp"
> >                     validate="true">
> >             <forward name="success"
> >path="="/ChangePassword/changePasswordConfirmed.jsp"
redirect="true"/>
> >
> >        </action>
> >
> >In  my action class I return: mapping.findForward("success");
> >
> >But I get an error message, HTTP 404, file not found.
> >mReturn.getPath() writes the correct path and if I copy this path
> inte the
> >browser's address field the page will be displayed.
> >
> >If I remove redirect="true" from struts-config the page will be
> found. What
> >is the problem, how can I solve this? I have done this in another
> project
> >and that worked.
> >
> >Ulrika
> >
>
>
>
>
> ===================================================================
> Skickat genom Swedish Connection WebMail
> ===================================================================
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@j...>
> For additional commands, e-mail: <mailto:struts-user-help@j...>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to