 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Clive Guest
|
Posted: Mon Apr 16, 2007 9:13 pm Post subject: Child question + illegal start expression???? |
|
|
Hi,
I have a form with a question and child questions
eg q1 program - Yes/no
q2 web; desktop
q3 java; .net; #C
My form is:
Q6a: Waterproblem (yes/NO)
Q6b: Current - radiobutton (curent, 1-5 years)
Q6c: Location Home (yes/No); Garden (Yes/No); common (yes/no)
If user selects Q6a = Yes (1)
.....
Q6c Home (0/1); Garden (0/1); common (0/1)
I want to check, if user selects Yes for Q6a, then they need
select 1 from Q6c.
If they don't select one choice, want to have a simple error warning.
Yes = 1 No = 0
if( page8.getWasteWaterProblem() == 1 ) ||
(getWasteWaterLocationProblemHome() == 0) ||
(getWasteWaterLocationProblemGarden() == 0) ||
(getWasteWaterLocationProblemCommonArea() ==0){
validationResultPage8.addWarning("WasteWaterProlemHome", "warning for
WasteWaterProlemHome from type 6c");
}
Shows an illegal start of expression error????
I |
|
| Back to top |
|
 |
Lew Guest
|
Posted: Tue Apr 17, 2007 3:50 am Post subject: Re: Child question + illegal start expression???? |
|
|
Clive wrote:
| Quote: | if( page8.getWasteWaterProblem() == 1 ) ||
.. . .
Shows an illegal start of expression error????
|
You're not allowed to put the OR operator (||) after the closing parenthesis
of the condition.
--
Lew |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|