struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciaran Hanley" <ciaran.han...@sentenial.ie>
Subject Problems Redirecting To Input Page After Vaildation Fails
Date Tue, 27 Jan 2004 18:56:44 GMT
Hello can anybody help me with this problem I'm having please?
 
I am using the same action to perform two functions
 
<action path="/clientaction"
        type="ie.sentenial.application.actions.ClientAction"
        name="clientForm"
        scope="request"
        input="/pages/addClient.jsp" 
        attribute="clientForm" >
</action>
 
This is called as follows from 2 different forms:
 
<html:form action="/clientaction?action=update" focus="clientName"
onsubmit="return validateClientForm(this)">
 
and 
 
<html:form action="/clientaction?action=add" focus="clientName"
onsubmit="return validateClientForm(this)">
 
The problem is that because I have
 
        input="/pages/addClient.jsp"          
 
...that when a validation fails while doing an update it is directed
back to the addClient.jsp rather than the updateClient.jsp
As far as I know the input field will not take dynamic values. I am not
sure how to resolve this problem. I need to be directed back to the
correct page when validations fail
 
Thanks
Ciaran

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message