Re: struts not forwarding after action
Just replying to say that using execute instead of perform made it work fine. Thanks. =) On 5/30/06, Homero Cardoso de Almeida <[EMAIL PROTECTED]> wrote: Thanks for the help, David. Yeah, I really think the book is a little outdated (i'm really using perform() instead of execute()). I think the version I got is the same as yours, since it mentions the execute() method and Struts 1.1. I'm not able to test it right now (i'm at work), but when I got home I'll see what I can get. Thanks again. =) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts not forwarding after action
Thanks for the help, David. Yeah, I really think the book is a little outdated (i'm really using perform() instead of execute()). I think the version I got is the same as yours, since it mentions the execute() method and Struts 1.1. I'm not able to test it right now (i'm at work), but when I got home I'll see what I can get. Thanks again. =) On 5/30/06, David Friedman <[EMAIL PROTECTED]> wrote: Homero, Often, people starting with Struts see blank pages if they use the wrong method in their Action class. Are you using perform() instead of execute() as your method? Your struts-config.xml file suggests you are using an outdated book because it lists your config DTD as version 1.0, not something more recent such as 1.2 (for the current version 1.2.9). If you are just starting on the Struts (classic a.k.a. Action 1.0) with the current downloads, the perform() method has long been deprecated in favor of the execute() method. There are a few other changes so you might want to check the migration notes on the Struts Wiki for later versions. Most of it should be the same but a few things have changed since your book teaching the 1.0 version. And for what it is worth, I learned Struts using that book too but my copy of it only taught version 1.0 with notes about 1.1, since that it when my copy of the book came out. Regards, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts not forwarding after action
Hello, I've created an application on my webapps folder, copied the libraries and tag descriptors needed, compiled the sources successfully and wrote the struts-config.xml for my app. But it's not working properly. =/ I'm trying the first example of the "Struts In Action" book. The JSP form page is shown fine, but when I send the data, either if the request succeeds or fails i receive a blank page. It looks like the forward is not happening. =/ Here is my struts-config.xml file: http://struts.apache.org/dtds/struts-config_1_0.dtd";> The actions do have a return statement with a call to findForward. Does anyone have any clue of what is happening? =/ Thanks to you all. Homero C. de Almeida - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]