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.
JavaJava EEApache Web Server

Avatar of undefined
Last Comment
sweetfa2

8/22/2022 - Mon
SOLUTION
Sathish David Kumar N

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
dkim18

ASKER
yes, other data values are saved.
SOLUTION
Sharon Seth

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
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>
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
sweetfa2

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

what makes you think that it is always being set