You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.
Recommended Learning For You
Level up your skills with Atlassian learning
Jira Align Program Essentials
Learn how to use Jira Align at the program level and how to plan for and manage your Program Increment (PI).
Managing Agile Boards and Reports
Learn how to pick the right board type for your team and customize it to fit your specific requirements.
Atlassian Certified Associate
Jira Software Board Configuration
Earn an associate-level credential from Atlassian that shows you can effectively configure Jira Software boards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.