on 8/9/2000 3:11 PM, "Diethelm Guallar, Gonzalo"
<[EMAIL PROTECTED]> wrote:

> Two (probably related) easy questions:
> 
> * When using $link.setPage(), how do I pass URL parameters
> on the URL? For instance, this
> 
> <a href="$link.setPage("Basic.wm?param=yes")">Basic</a>
> 
> produces an error message:
> 
> Resource[template, screens/error.wm] not found

.addPathInfo("param","yes")
or
.addQueryData("param","yes")

> * How do I retrieve URL parameters from a WM screen?
> For instance, if I hit a page with the following URL:
> 
> http://localhost/Turbine/Basic.wm?param=yes
> 
> I would like to be able to do
> 
> <b>The value for param is $param;</b>
> 
> but that doesn't work ($param is null).

just like in your java code:

$data.getParameters().getString("param")

:-)

> Is there a reference manual for WM? Thanks,

www.webmacro.org



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to