Server side validation not working

dkim18
dkim18 used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
is other data value are saved ??

Author

Commented:
yes, other data values are saved.
When does this action get called ? Is it during form submit or is this action called by a java script ?
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Author

Commented:
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.
Commented:
Does the page by default show one of the radio buttons as checked.  If the form is submitted without the user actually selecting one of these buttons does the problem occur?
what you validate in the java code ?? can you post that ??

Author

Commented:
<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>

Commented:
there is no validation on the form for radio buttons being checked.

what makes you think that it is always being set

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial