I am writing a plugin that extends from BaseController, and I am using the ShowPermissionsController class from the sample plugin as a guide for what I want to do. So currently I have edited viewPermissions.jsp to include some base forms like two text fields and a button. Now I am a little confused at how I would recieve input from the text fields? So this is the part of the code that will create the two text box forms and the button form:
<h4>Enter project name you wish to copy</h4>
<input type="text" id='projectName' size="60" tabindex = "1" onblur="setPolicy()"/> </form>
<h4>Enter The new URL you would like this project to point to</h4>
<input type="text" id='url' size="60" tabindex = "1" onblur="setPolicy()"/> </form>
<input tabindex = "3" id="search" type="submit" value="Copy Project"/></form>
How do I get access to the information that was entered into the two text fields from within Java? Is there a better example I can look at other than the sample plugin that does some sort of Text Input?
I have already looked at HelloUserController pretty extensively too. I am somewhat wanting the opposite of what that is doing. I undertand putting parameters into the hashmap and displaying them in the .jsp file. That is the way to get information out of teamcity, now how to I get the information in? I hope this is a better explanation of what I want.