Hi,

I have two problems when trying to forward to an Action from within an
Action. Scenario: I have an Action TaskCreateAction which is
associated with a TaskCreateForm. This form is a kind of 'super' form
containing nothing more than two other forms, 'TaskForm' and
'CustomerForm'. Within TaskCreateAction at some time I want to forward
the request to a CustomerSearchAction which is associated with a
CustomerForm. 

So, my first question: How can I push an already filled out
CustomerForm to this action which is called by an ActionForward without
redirect? Is there a predefined request attribute, which can be used
to set the form for an action ?

For now, I'm using a workaround to put the form into request scope
myself, which is then picked up by the following Action.

However, this doesn't work, because when I'm trying to forward to the
destination action, I get a strange Tomcat 3.2.2 error:

2001-07-13 07:10:29 - Ctx( /cmhelp/ref ): 500 R( /cmhelp/ref + /action
+ /task-create) Cannot get request dispatcher for path customer-search

The desired forward is configured properly and indeed exist and can be
found by tomcat (if I use another, non-existent forward, the error
message is quite different). 

Does anybody know, whats going on here ? Has someone already
sucessfully forwarded to another Action from an Action using Tomcat ? 

BTW, a redirect works ok (setting ActionForward.setRedirect(true)),
but then  I would have to store the form to pass on into the session,
which is even uglier....

cu...
-- 
                                                        ...roland huss
                                                             consol.de

Reply via email to