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
Community moderators have prevented the ability to post new answers.
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
Learning Path
Apply agile practices
Transform how you manage your work with agile practices, including kanban and scrum frameworks.
Learning Path
Configure agile boards for Jira projects
Learn how to create and configure agile Jira boards so you can plan, prioritize, and estimate upcoming work.
Jira Essentials with Agile Mindset
Suitable for beginners, this live instructor-led full-day course will set up your whole team to understand how to use Jira with an agile methodology.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.