The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I want to move statements from a jsp-file to a velocity-file.
In this case, I try to move a webwork property into a velocity statement:
var returnUrl = "<ww:property value="returnUrl" />";
Cheers
Karlheinz
Hi Andi,
thanks a lot.
In this case, it was part of a java script inside the velocity file and so it also works like this:
var returnUrl = "$returnUrl";
Best Regards
Karlheinz
Well, assuming you have control over the velocity context, defining a value in velocity is like:
#set ( $returnUrl = "http://bla/theurl" )
Then, to use, just $returnUrl is needed.
Usually, you can access the driving action with $action.getXxxx() for accessing more complex data /logic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.