Link to home
Start Free TrialLog in
Avatar of dkim18
dkim18

asked on

Server side validation not working

Hi Experts,

I have a web app(Struts 1.x) - Tomcat and oracle - and there is server side validation for this:

<form name="stepSix" method="post" action="/xxx/registration/step/six.do">
...
      <input type="radio" name="infoContact" value="Y">Yes                        
      <input type="radio" name="infoContact" value="N">No
...
</form>


<action name="stepSix" type="org.aaa.actions.bbb.StepSix" parameter="method" validate="false" path="/registration/step/six">

The problem is those two radio button data are not saving very occasionally and I can't even re-produce this bug.

So user can't even go to next page without filling those radio buttons.

Any ideas?

thanks in advance.
SOLUTION
Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dkim18
dkim18

ASKER

yes, other data values are saved.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dkim18

ASKER

it get called during form submit and saved in session.
And the entire data in the session will be saved in the DB with a last submit button.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dkim18

ASKER

<form name="stepSix" method="post" action="/xxx/registration/step/six.do">
...
      <input type="radio" name="infoContact" value="Y">Yes                        
      <input type="radio" name="infoContact" value="N">No
...
</form>
there is no validation on the form for radio buttons being checked.

what makes you think that it is always being set