Hello everyone,

I'm working with smart forwarding in my application. I have an action with 
this mapping in struts-config:

<action path="/DeterminaColecao" 
type="auge.action.DeterminaAction"
name="addDelUpdColecaoForm" 
validate="true"
input="/pages/colecao/colecao.jsp"> 
scope="request" > 
<forward name="add" path="/AddColecao.do"/> 
<forward name="del" path="/DelColecao.do"/> 
<forward name="upd" path="/UpdColecao.do"/> 
</action>

The actions for which it forwards are configured like this one:

<action
path="/UpdColecao"
type="auge.action.UpdColecaoAction"
name="addDelUpdColecaoForm" 
scope="request" 
validate="true"
input="/pages/colecao/colecaoDados.jsp"> 
<forward name="success" path="/pages/colecao/colecao.jsp" redirect="true"/> 
<forward name="error" path="/pages/erro.jsp"/> 
</action> 


As you can see, the second action has a different input page. It is because 
is I have 3 actions to which I will forward and one of them has a different 
input page. So, when the validator returns me an error, and returns me to 
the input page specified at "DeterminaColecao", and not at the action 
executed. I tried ommiting the "input" option at "DeterminaColecao", but 
then it returns me an error instead of using the action input.

Is there any way my html:form could call the "DeterminaColecao" but use the 
input page of the action to which it forwarded?

Thank you.




-- 
Letícia Álvares Barbalho
[EMAIL PROTECTED]

Reply via email to