Wee Ler Ping
|
| Posted: 03/14/2002, 4:17 AM |
|
Dear people,
I've already done this for the most part. In JSP, under the Validation tabs,
etc.
if ( ! getParam( request, "Facilitator" ).equals(getParam(
request,"Leader"))) {
sWITsErr += "\nYou cannot assign yourself to be the facilitator of this
WITs project.";
}
Basically with the above code, the operation would make it so that when
Facilitator = Leader, the error will not appear.
But When Facilitator != Leader, the error will happen.
How do I change the code to make it when Facilitator = Leader, the error
will appear? (i.e. instead of when Faciltator = Leader, the error won't).
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 03/14/2002, 4:25 AM |
|
In java ! sign means negation.
You should simply remove ! sign from the condition.
if ( getParam( request, "Facilitator" ).equals(getParam(
request,"Leader"))) {
sWITsErr += "\nYou cannot assign yourself to be the facilitator of this
WITs project.";
}
--
Alex
CodeCharge Developer
"Wee Ler Ping" <weesulin@singnet.com.sg> wrote in message
news:a6q4cj$o44$1@news.codecharge.com...
> Dear people,
>
> I've already done this for the most part. In JSP, under the Validation
tabs,
> etc.
>
> if ( ! getParam( request, "Facilitator" ).equals(getParam(
> request,"Leader"))) {
> sWITsErr += "\nYou cannot assign yourself to be the facilitator of this
> WITs project.";
> }
>
> Basically with the above code, the operation would make it so that when
> Facilitator = Leader, the error will not appear.
>
> But When Facilitator != Leader, the error will happen.
>
> How do I change the code to make it when Facilitator = Leader, the error
> will appear? (i.e. instead of when Faciltator = Leader, the error won't).
>
>
>
|
|
|
 |
|