CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Just a little bit of your time!

Print topic Send  topic

Author Message
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).
>
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.