Re: Svar: How make a forward when redirect=true
Have you solved this yet? Did your 404 message display the URL it couldn't find? That's vital evidence. K. PS. We need more kiwis on this list - swedish plot to take over. --- snurre1000 [EMAIL PROTECTED] wrote: 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] = ~~ Search the archive:- http://www.mail-archive.com/struts-user%40jakarta.apache.org/ ~~ Keith Bacon - Looking for struts work - South-East UK. phone UK 07960 011275 __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Svar: How make a forward when redirect=true
Damn, you are on to us :-) Another place to look is the server log, does it anything that might look strange? The problem is strange because the thing should work... and has worked for me. It probably need some experimenting :-) If the forward is changed to some other page... just an ordinary html page or something, does it work then? At 04:59 2002-03-16 -0800, you wrote: Have you solved this yet? Did your 404 message display the URL it couldn't find? That's vital evidence. K. PS. We need more kiwis on this list - swedish plot to take over. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Svar: How make a forward when redirect=true
It could be server config. A spec compliant web server will send a redirect like this: HTTP/1.0 302 OK Location: http://myserver:port/ChangePassword/changePassword.jsp Though, and the above url should be what's in the browser location bar. Make sure the location provided has the correct host port - esp if you are using web server / NAT router in front of the servlet engine. -Original Message- From: mikael Sent: 14 March 2002 10:23 To: struts-user Cc: mikael Subject: Svar: How make a forward when redirect=true 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] Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Svar: How make a forward when redirect=true
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]