Re: mapping.findForward( mapping.getInput() ) ?

2003-07-16 Thread Sandeep Takhar
I lost track of this thread, but I believe return new ActionForward(mapping.getInput()) might work?? sandeep --- Michael Muller [EMAIL PROTECTED] wrote: 1) You can use mapping.getInputForward() - more straightforward. so would you say cavaness's example broken? is there any way to

mapping.findForward( mapping.getInput() ) ?

2003-07-15 Thread Michael Muller
In Cavaness's book Programming Jakarta Struts, there is a code sample on page 188 that contains a line I don't understand. In the execute method of an implementation of an Action class, is the following line of code: return mapping.findForward( mapping.getInput() ); Doesn't the input have

Re: mapping.findForward( mapping.getInput() ) ?

2003-07-15 Thread Dichotomy
of code: return mapping.findForward( mapping.getInput() ); Doesn't the input have to be an Action? The DTD says action or other resource. What other resource? Could I put the name of a tile in there? I tried putting the name of a forward in there, but the validation framework complained

Re: mapping.findForward( mapping.getInput() ) ?

2003-07-15 Thread Michael Muller
1) You can use mapping.getInputForward() - more straightforward. so would you say cavaness's example broken? is there any way to configure struts such that it would work? 2) Yes, the forward can point to any resource, from a tiles definition to a jsp or an action url (I'm talking about the

Re: mapping.findForward( mapping.getInput() ) ?

2003-07-15 Thread Dichotomy
On Tue, 15 Jul 2003 12:34:07 -0600 Michael Muller [EMAIL PROTECTED] wrote: 1) You can use mapping.getInputForward() - more straightforward. so would you say cavaness's example broken? is there any way to configure struts such that it would work? I'm not saying anything about Cavaness'

Re: mapping.findForward( mapping.getInput() ) ?

2003-07-15 Thread Michael Muller
I'm not saying anything about Cavaness' book. I haven't read it so I cannot comment :-) I'm just saying you can get the Input forward easily this way. well, i'm not looking for a critique of the book, i'm just saying this code looks broken. return mapping.findForward( mapping.getInput