Using the config file redirect, the user gets sent to the jsp yet the URL is pointing to the servlet. If i refresh i get a POST once again.
If i use the new ActionForward code, it works as intended. I see the new URL where i'm forwarding to as well as refreshing without posting data back to the server.
well the the difference is in the URL and on the refresh... If i do a refresh on a page that got "redirected" from the struts config, it tries to post back to the servlet... thus giving me the impression the page got forwarded rather than redirected. Am i wrong?
You wrote: Using the config file redirect, the user gets sent to the jsp yet the URL is pointing to the servlet. If i refresh i get a POST once again.
If the URL is of the servlet then it got redirected.
Not sure about the refresh thing, but I just find it *extremely* unlikely that redirect="true" doesn't work, as it's pretty much been working for 7-8 years.
Joined: Jul 24, 2007
Ok so better question. How can i tell the difference between a forward or redirect from the client side? I too find it odd, but maybe there is something that is overwritting that configuration file setting