Titlevariable not assigned
Date15-Nov-2004 00:35:48 EET
Version2.1.115alpha
SubmitterReinhardEngel
PageProvider used
CriticalityBadBug
Servlet ContainerTomcat 5.0.28
Browser versionFirefox 1.0
URL
StatusClosedBug
Java version1.4.2_04

I just want to assign the current page name to another variable. I tried different syntaxes but always get some kind of junk. This:

[{SET myvar1 = "MyVar-1 no problem"}] Show myvar1: [{$myvar1}]\\
[{SET myvar2 = [{$pagename}]}] Show myvar2: [{$myvar2}]\\
[{SET myvar3 = \[{$pagename}\]}] Show myvar3: [{$myvar3}]\\
[{SET myvar4 = [[{$pagename}]]}] Show myvar4: [{$myvar4}]
produces this:
 Show myvar1: "MyVar-1 no problem"
}] Show myvar2: [{$pagename
Show myvar3: \[{$pagename}\]
]}] Show myvar4: [[{$pagename
Do I just make a syntax error or is something wrong?

A: No, it's just that you found a bug in JSPWiki engine... :)


This has been fixed in 2.1.120. The syntax is [{SET var1='{$var2}'}].

--JanneJalkanen

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-3) was last changed on 15-Nov-2004 00:49 by 212.90.75.126