I am not positive, but I believe the CGI spec itself does not allow for
an undefined value to be passed. You might have to dig into how mod_perl
itself is getting the querystring values. You may be able to test the
QueryString using the WebUtils taglib.

if ( <webutil:query_string /> =~ /foo=&/ ) {
  $foo = undef;
} else { 
  $foo = <param:foo />;
}

Don Shanks
Senior Applications Systems Engineer
Cell Systems Initiative - University of Washington
[EMAIL PROTECTED]



-----Original Message-----
From: Nigel Peck [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 24 July, 2002 07:38
To: [EMAIL PROTECTED]
Subject: <param:foo/>


How can I check to see if foo has been passed, (and this is the
important part), even if it was empty.

e.g. bar.xsp?foo=&foo2=test

I know I can do 

if (<param:foo/>) 

but that returns false when it doesn't exist and when it's empty.

TIA
Nigel


ITM Business Solutions
Unit 4
Nine Trees Trading Estate
Morthen Road
Rotherham
S66 9JG

Reception
Tel: 01709 703288
Fax: 01709 701549

Help Desk
Tel:01709 530424
Fax: 01709 702159

CONFIDENTIALITY NOTICE: This message is intended only for the use of the
individual or entity to which it is addressed, and may contain
information that is privileged, confidential and exempt from disclosure
under applicable law.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to