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" />";
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.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events