AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Child question + illegal start expression????

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
Clive
Guest





PostPosted: Mon Apr 16, 2007 9:13 pm    Post subject: Child question + illegal start expression???? Reply with quote



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


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





PostPosted: Tue Apr 17, 2007 3:50 am    Post subject: Re: Child question + illegal start expression???? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.