whether their values are equivalent. thats a powerful piece of
flexibility--one that you have elsewhere as well..
bradley mclain
>From: Divya M A <[EMAIL PROTECTED]>
>Reply-To: Divya M A <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Using query string values in JSP
ginal Message -
> From: Mike McKechnie <[EMAIL PROTECTED]>
> To: Divya M A <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Monday, March 27, 2000 4:55 PM
> Subject: Re: Using query string values in JSP
>
>
> > > if (request.getParameter("
ages!?!
- Original Message -
From: Mike McKechnie <[EMAIL PROTECTED]>
To: Divya M A <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, March 27, 2000 4:55 PM
Subject: Re: Using query string values in JSP
> > if (request.getParameter("val") == "
>To: [EMAIL PROTECTED]
>Subject: Using query string values in JSP
>Date: Mon, 27 Mar 2000 16:34:07 -0500
>
>Hi!
>I'm new to JSP. I have a JSP file which must perform a task depending
>on
>the value passed through a query-string in the url. But I am not able to
>make
to:[EMAIL PROTECTED]]
> Sent: Monday, March 27, 2000 1:34 PM
> To: [EMAIL PROTECTED]
> Subject: Using query string values in JSP
>
>
> Hi!
>I'm new to JSP. I have a JSP file which must perform a
> task depending on
> the value passed through a query-string in the url.
> if (request.getParameter("val") == "1")
In Java, the '==' operator does an identity comparison -- that is, two
object references are equal only if they refer to the same object.
To lexically compare two strings, do something like:
if (request.getParameter("val") != null &&
request.getParamet
Hi!
I'm new to JSP. I have a JSP file which must perform a task depending on
the value passed through a query-string in the url. But I am not able to
make the comparison;i.e,
if my url is : 'first.jsp?val=1'
and in the jsp file, I check the value of the string passed as shown below:
if (reques