Some javascript/style in this post has been disabled (
why?)
Form works in index.jelly but not in summary.jelly
Hi,
I've created an Action for performing some task after the build has completed ("build transfer" which is specific to our working environment) .
This action requires some input so I've created a form for it with a post action.
I have the following form in my index.jelly :
<form method="post" action="transferBuild" >
<j:forEach var="i" items="${it.allTransferSites}">
<f:checkbox name="${i.name}" value="checked"/>${i.name}<br/>
</j:forEach>
<input type="submit" value="Transfer Build"/>
</form>
And the following implementation in the corresponding action class :
public void doTransferBuild(StaplerRequest req, StaplerResponse rsp) throws Exception {
// implementation here
...
req.getParameter(someParam);
...
rsp.sendRedirect2(".."); // return to build page
}
All this works well.
For usability reasons, I am trying to make the same work from summary.jelly , but I am not able to.
It gets displayed ok in the build summary page , but as soon as the form submit button is pressed , the page is displayed as "Page not found" .
Any idea what I am doing wrong ?
Thanks,
Rinat