Title | variable not assigned |
Date | 15-Nov-2004 00:35:48 EET |
Version | 2.1.115alpha |
Submitter | ReinhardEngel |
PageProvider used | |
Criticality | BadBug |
Servlet Container | Tomcat 5.0.28 |
Browser version | Firefox 1.0 |
URL | |
Status | ClosedBug |
Java version | 1.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: [[{$pagenameDo 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}'}].
Add new attachment
Only authorized users are allowed to upload new attachments.