struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kiuma <ki...@usa.net>
Subject [STRUTS] Form error handling
Date Tue, 17 Sep 2002 11:00:28 GMT
Hello,
mine is a newbie question:

When validate fails i put some code like this:

newError = new ActionError("myform.error", "")
errors.add( ActionErrors.GLOBAL_ERROR, newError );

in my properties file I put the key relative to myform.error.

in struts-config.xml

        <action name="listedUserForm" input="/secure/userlist.jsp" 
path="/listedUser" type="com.wingstech.webappointments.ListedUserAction" 
                parameter="action" validate="true">
            <forward name="Success" path="/secure/userlist.jsp" 
redirect="true" />
        </action>      

When validate() returns error, struts should dirve me to input page.

How can I parse errors in my jsp page, then?

thanks,
kiuma



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message