You are viewing a plain text version of this content. The canonical link for it is here.
Posted to websh-user@tcl.apache.org by Jerry Lam <bo...@hotmail.com> on 2003/11/22 05:20:09 UTC

unset cmd from the querystring

Hi,

How can I unset the cmd from the querystring?

I tried web::param -unset which should unset all parameters right? or there is something I have to do something at the web::dispatch to unset ?

Thanks,

Jerry

Re: unset cmd from the querystring

Posted by Ronnie Brunner <ro...@netcetera.ch>.
Jerry

> How can I unset the cmd from the querystring?
> 
> I tried web::param -unset which should unset all parameters right? or there is something I have to do something at the web::dispatch to unset ?

web::param -unset works, but if you don't tell web::dispatch not to
parse the querystring, in a dispatched command, you'll have your
parameters back


So you might want to use [web::dispatch -cmd ""] or something. BTW: in
the quick ref, you'll find how to do that. See:

  http://tcl.apache.org/websh/quickref/command_dispatching_and_session_management.html#web::dispatch


Ronnie
----------------------------------------------------------------------
Ronnie Brunner                             ronnie.brunner@netcetera.ch
Netcetera AG, 8040 Zuerich   phone +41 1 247 79 79 fax +41 1 247 70 75