Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to use webwork property in velocity file


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" />";



2 answers

1 accepted

0 votes
Answer accepted

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


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 in Agile

On-demand: Fireside chat with Atlassian on scaling agile organizations

Scaling an agile organization and setting it up for success over the long term is a hard thing to do. We hear a common set of questions from customers all the time, questions like: Can agile scal...

3,903 views 2 17
Read article

Community Events

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

Events near you