Hi all!

I have got the following problem: an external script submits a request to my
web-app ans is not
interested what happens with it. As set in the struts-config.xml, the
request parameters are
used to populate a DynaValidatorForm, which is validated as specified in my
validation.xml.
If validation fails, the form should be forwarded to another action which
logs the data in the
form so that errors can be traced. So I did the following:

<action path="/newActivityTrigger"
        type="packages.NewActivityTriggerAction"
        scope="request"
        name="triggerForm"
        validate="true"
        input="/triggerError.do">
</action>

<action path="/triggerError"
        type="packages.TriggerErrorAction"
        scope="request"
        name="triggerForm"
        validate="false">
</action>

So if validation is ok, the NewActivityTriggerAction adds the
data to my database, but if it fails, the TriggerErrorAction
should perform its work. But nothing happens! There is no error
in my logs, whether in my standard log nor in my special trigger
error log. The form is populated properly, and if I turn of
validation, everything works fine (my NewActivityTriggerAction
throws an Exception as expected). So why does the input forward
not work? Does anyone have a suggestion?

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to