The forward tag looks up a forward from the Struts configuration file and redirects to it. Based on the way that the forward is defined in the configuration file, this tag will either forward to the URL specified by the forward or perform a redirect to it. If the forward has its redirect attribute set to “true”, as shown in the following example, this tag will perform a redirect:
Note that only URLs residing on the same server can be forwarded to, whereas any URL can be redirected to.
No comments:
Post a Comment