Quote:
|
I am trying to use the mapping.findforward() method to redirect the control to a URL like http://www.yahoo.com I declared a action forward tag in struts-config.xml but for some reason, when I use the execute method (Struts 1.1) it doesn\'t work. When I use the perform method (Struts 1.0), it works!
|
Answer:
Check your struts version in WSAD. I guess it is 1.0, so execute() method is not working. So change to version Struts 1.1 and try.
Quote:
|
I am using WSAD 5.0. Also, is there a way to update the Struts plugin on WSAD to nightly build release of Struts from Apache?
|
Answer:
In the Project Navigator of WSAD, select a (web) project name, right-click the name, and click Properties. On the Properties page, click Web Project Features, check the Add Struts support box, and click Apply. If you want to override the default Struts settings, on the Struts Settings page click the Override default settings box. To specify a different version, select from the \"Struts version\" drop-down menu. This determines which .jar and .tld files will be copied to the workspace: those for Struts 1.1 (default) or those for Struts 1.0.2. Click Finish. Note: Whatever version of Struts you select for your project becomes the default for your subsequent Struts projects.