Velocity passing the parameter to Action file

Hi,
I am using the following javascript code to fetch the value of the radio button:-


I want to capture the value of OrpAccessString in Action. How to do it?

5 answers

are you using the below execute method.

public String execute(Map<String, String> arg0, .....)

then you can get the parameter from 'rg0' argument.

The below post also helps you to understand about the parameters

https://answers.atlassian.com/questions/214512/problem-getting-a-macro-parameter

I am having the function:-

public void perform(ServletEnvironment env)

I am using velocity.

Also Uday, as far as the problem is concerned, I do not think that they are related.. :(

Suggest an answer

Log in or Join to answer
Community showcase
Bridget Sauer
Published Wednesday in Agile

Community Showcase: Thomas Deiler, Mountaineering Agile Coach

Thomas Deiler is a Bavarian, Mountaineering, Senior Agile Coach. In this Showcase, you will learn about his journey from software engineer to project manager, his freelance philosophy, and much more....

100 views 3 6
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot