jiravelocitywebwork

Getting values in my Java class from velocity (Jira plugin webwork module )


I am creating a Jira plugin which provides a version tab panel. In the velocity of this version tab panel i am providing a select list . the code of select list is as below

                    <form name="input" action="AddParent" method="post">
        <select name="parentVersion">
        <option value="-1">--select Parent--</option>
        #foreach($version in $versions )
            <option value="$version" selected="true">$version</option>
        <input type="submit" value="Add Parent"/>
        </form>

Now in my plugin i have included a webwork module to handle this action . when i click the "Add Parent" button nothing is happening. I need the value which i have selected in my java action class . I am surely missing something . can someone please help me with this ? Thanks in advance .


Solution

  • I'm not sure what's missing in your code, but the WebWork Sample Plugin has more information about this.