struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kiuma <>
Subject [STRUTS] Form error handling
Date Tue, 17 Sep 2002 11:00:28 GMT
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" />

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

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


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message