How to submit form and stay on same page?
I have this code in Java
public String doDeleteCertainFilter(){ String userID = this.getHttpRequest().getParameter("userID"); ApplicationUser user = ComponentAccessor.getUserManager().getUserByKey(userID); getJiraUtils().deleteFilters(user); return this.getRedirect("/secure/PMOPWA.jspa"); }
In my velocity
#foreach ($filter in $filters) <tr role="row"> <td colspan="1" class="confluenceTd"><a href="">$filter.getUsername()</a></td> <td colspan="1" class="confluenceTd">$filter.getListWithFilters()</td> <td colspan="1" class="confluenceTd">$filter.getListWithFilters().size()</td> <td style="max-width:150px; word-wrap:break-word;" class="confluenceTd"> <a href="PMOPWA!DeleteCertainFilter.jspa?userID=${filter.getUserID()}" <span class="aui-icon aui-icon -small aui-iconfont-remove"></span> </td> #end
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.