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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to