Hi Leute, weiss einer von Euch, ob es möglich ist, wenn Fehler in einer Form auftreten den Fehler auf verschiedenen Seiten auszugeben. Wir wollen es nämlich so machen:
<action
path="/cinemahall"
type="de.jjds.movieticket.action.CinemahallAction"
scope="session"
name="dynaCinemahallForm"
validate="true"
parameter="method"
input="/employees/employeecinemaofficer/cinemahalls.jsp">
<forward name="success" path="employees/employeecinemaofficer/cinemahalls.jsp" redirect="true"/>
<forward name="view_single_success" path="employees/employeecinemaofficer/changeCinemahall.jsp" redirect="true"/>
<forward name="failure" path="/employees/employeecinemaofficer/addCinemahall.jsp" redirect="true"/>
<forward name="delete_failure" path="/employees/employeecinemaofficer/cinemahalls.jsp" redirect="true"/>
</action>
Die verschieden Aktionen (add, change, delete,..) wollen wir in einem action-Mapping zusammenfassen und nicht für jede Aktion ein eigenes machen. Jetzt ist aber das Problem, dass er immer nur auf die eine Input-Seite zurück geht(bei Fehler in der Form) und wir brauchen verschiedene "inputs", abhängig von der Aktion.
Kann uns jemand helfen?
<action
path="/cinemahall"
type="de.jjds.movieticket.action.CinemahallAction"
scope="session"
name="dynaCinemahallForm"
validate="true"
parameter="method"
input="/employees/employeecinemaofficer/cinemahalls.jsp">
<forward name="success" path="employees/employeecinemaofficer/cinemahalls.jsp" redirect="true"/>
<forward name="view_single_success" path="employees/employeecinemaofficer/changeCinemahall.jsp" redirect="true"/>
<forward name="failure" path="/employees/employeecinemaofficer/addCinemahall.jsp" redirect="true"/>
<forward name="delete_failure" path="/employees/employeecinemaofficer/cinemahalls.jsp" redirect="true"/>
</action>
Die verschieden Aktionen (add, change, delete,..) wollen wir in einem action-Mapping zusammenfassen und nicht für jede Aktion ein eigenes machen. Jetzt ist aber das Problem, dass er immer nur auf die eine Input-Seite zurück geht(bei Fehler in der Form) und wir brauchen verschiedene "inputs", abhängig von der Aktion.
Kann uns jemand helfen?
Comment