How to use webwork property in velocity file

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

2 answers

1 accepted

This widget could not be displayed.

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

This widget could not be displayed.

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Agile

What's new this quarter in Confluence Server - August 2018

Hello Atlassian Community! My name is Ada , and I'm the Product Marketing Manager for Confluence Server at Atlassian. If you missed   our last post, we're transitioning to quarterly updates&nb...

109 views 0 1
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you