/*
 * Copyright 2012 Anita Onnuvel
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.ahp.vinavidai.console.form;

import javax.servlet.http.HttpServletRequest;

import org.ahp.commons.form.AhpAbstractForm;
import org.ahp.vinavidai.enums.SubmitActions;
import org.apache.commons.lang3.StringUtils;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Anita Onnuvel
 * 
 * @struts.form name="QuizConsoleForm"
 */
public class QuizConsoleForm extends AhpAbstractForm {

    private static final long serialVersionUID = 1L;

    final static Logger LOGGER = LoggerFactory
            .getLogger( QuizConsoleForm.class );

    @Override
    protected void resetForm( ActionMapping pActionMapping,
            HttpServletRequest pHttpServletRequest ) {
    }

    @Override
    public ActionErrors validate( ActionMapping pActionMapping,
            HttpServletRequest pHttpServletRequest ) {
        ActionErrors lActionErrors = new ActionErrors();
        String lSubmitAction = StringUtils.trimToNull( this.getSubmitAction() );
        if ( lSubmitAction != null
                && SubmitActions.NEXT.toString().equals( ( lSubmitAction ) ) ) {
        }
        return lActionErrors;
    }
}

@@ -26,25 +26,24 @@
 a Onnuvel%0A *
- 
 %0A * Licensed
@@ -211,17 +211,16 @@
 se at%0A *
- 
 %0A * http
@@ -260,17 +260,16 @@
 E-2.0%0A *
- 
 %0A * Unle
@@ -996,10 +996,9 @@
 l%0A *
- 
 %0A
+
  * @
@@ -1192,29 +1192,16 @@
 rFactory
-%0A            
 .getLogg
@@ -1296,32 +1296,50 @@
 pActionMapping,%0A
+                  
             Http
@@ -1373,24 +1373,24 @@
 Request ) %7B%0A
-
     %7D%0A%0A    @
@@ -1454,32 +1454,54 @@
 pActionMapping,%0A
+                      
             Http

format change