|
Struts example source code file (struts-validation.xml)
The Struts struts-validation.xml source code<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <package name="validation" extends="struts-default" namespace="/validation"> <action name="quizBasic" class="org.apache.struts2.showcase.validation.QuizAction"> <result name="input">quiz-basic.jsp <result>quiz-success.jsp </action> <action name="quizClient" class="org.apache.struts2.showcase.validation.QuizAction"> <result name="input">quiz-client.jsp <result>quiz-success.jsp </action> <action name="quizClientCss" class="org.apache.struts2.showcase.validation.QuizAction"> <result name="input">quiz-client-css.jsp <result>quiz-success.jsp </action> <action name="quizAjax" class="org.apache.struts2.showcase.validation.QuizAction"> <interceptor-ref name="jsonValidationWorkflowStack"/> <result name="input">quiz-ajax.jsp <result>quiz-success.jsp </action> </package> <package name="validationExamples" extends="struts-default" namespace="/validation" > <action name="list"> <result>index.jsp </action> <!-- ======================== --> <!-- === Field Validators === --> <!-- ======================== --> <action name="showFieldValidatorsExamples" class="org.apache.struts2.showcase.validation.FieldValidatorsExampleAction" method="input"> <result name="input" type="dispatcher">/validation/fieldValidatorsExample.jsp </action> <action name="submitFieldValidatorsExamples" class="org.apache.struts2.showcase.validation.FieldValidatorsExampleAction" method="submit"> <result name="input" type="dispatcher">/validation/fieldValidatorsExample.jsp <result type="dispatcher">/validation/successFieldValidatorsExample.jsp </action> <!-- ============================ --> <!-- === Non Field Validators === --> <!-- ============================ --> <action name="showNonFieldValidatorsExamples" class="org.apache.struts2.showcase.validation.NonFieldValidatorsExampleAction" method="input"> <result name="input">/validation/nonFieldValidatorsExample.jsp </action> <action name="submitNonFieldValidatorsExamples" class="org.apache.struts2.showcase.validation.NonFieldValidatorsExampleAction" method="submit"> <result name="input">/validation/nonFieldValidatorsExample.jsp <result>/validation/successNonFieldValidatorsExample.jsp </action> <!-- ========================== --> <!-- === Visitor Validators === --> <!-- ========================== --> <action name="showVisitorValidatorsExamples" class="org.apache.struts2.showcase.validation.VisitorValidatorsExampleAction" method="input"> <result name="input">/validation/visitorValidatorsExample.jsp </action> <action name="submitVisitorValidatorsExamples" class="org.apache.struts2.showcase.validation.VisitorValidatorsExampleAction" method="submit"> <result name="input">/validation/visitorValidatorsExample.jsp <result>/validation/successVisitorValidatorsExample.jsp </action> <!-- ========================== --> <!-- === Visitor Validators === --> <!-- ========================== --> <action name="clientSideValidationExample" class="org.apache.struts2.showcase.validation.FieldValidatorsExampleAction" method="input"> <result name="input">/validation/clientSideValidationExample.jsp </action> <action name="submitClientSideValidationExample" class="org.apache.struts2.showcase.validation.FieldValidatorsExampleAction" method="submit"> <result name="input">/validation/clientSideValidationExample.jsp <result>/validation/successClientSideValidationExample.jsp </action> <!-- =========================================== --> <!-- === Store Error Messages Across Request === --> <!-- =========================================== --> <action name="submitApplication" class="org.apache.struts2.showcase.validation.SubmitApplication" method="submitApplication"> <interceptor-ref name="store"> <param name="operationMode">STORE </interceptor-ref> <interceptor-ref name="defaultStack" /> <result name="input" type="redirect">/validation/resubmitApplication.action <result type="redirect">/validation/applicationOk.action </action> <action name="resubmitApplication" class="org.apache.struts2.showcase.validation.SubmitApplication"> <interceptor-ref name="store"> <param name="operationMode">RETRIEVE </interceptor-ref> <result>/validation/storeErrorsAcrossRequestExample.jsp </action> <action name="applicationOk" class="org.apache.struts2.showcase.validation.SubmitApplication" method="applicationOk"> <interceptor-ref name="store"> <param name="operationMode">RETRIEVE </interceptor-ref> <result>/validation/storeErrorsAcrossRequestOk.jsp </action> <action name="cancelApplication" class="org.apache.struts2.showcase.validation.SubmitApplication" method="cancelApplication"> <result>/validation/storeErrorsAcrossRequestCancel.jsp </action> </package> </struts> Other Struts examples (source code examples)Here is a short list of links related to this Struts struts-validation.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.