Hello Jan,

Thursday, July 26, 2001, 1:40:48 AM, you wrote:

JFØ> Hi
JFØ> I have a action class that is used in several actionmappings and in some
JFØ> situations it is called directly
JFØ> from a url, like "href=myaction.do", but in these cases the validation
JFØ> implemented prevents me from continuing the process.
JFØ> My question is: how can i turn off validation when calling a action class
JFØ> from a URL.

Is is simple - set validate attribute in action mapping to false:

    <action    path="/registration/register"
               name="registrationForm"
               input="/WEB-INF/jsp/registration.jsp"
               validate="true"
               type="com.rb.action.RegisterAction">
        <forward        name="confirm"          
path="/WEB-INF/jsp/confirmRegister.jsp"/>
    </action>



-- 
Best regards,
 Oleg                            mailto:[EMAIL PROTECTED]


Reply via email to