PDA

View Full Version : How to clear parameters from url?


lasse_stromberg
Jun 1st, 2006, 12:06 PM
Maybe its very obvious how to do it, but i'm struggling with it since 2 hours and found no answer on the forums.
I am using a AbstractWizardFormController and on one page of the wizard flow i use displaytag to generate a table.
For its sorting and paging displaytag uses GET parameters. So if i click on a sort or paging link the parameters get appended to the url.
When i now click on a back or forward button (doing a POST request) on the same page, i'm able to get to the other page but the displaytag encoded url is still preserved.
This looks a little bit ugly but more severly it causes some conflicts (when i step back to the displaytag table page).
Thus i'm looking for way to get rid of all parameters in the url after doing a Submit from the displaytag page.
But i'm really lost on how to accomplish this! Can anybody help me?
Many thx in advance!

rstearns01
Jun 5th, 2006, 09:51 AM
The simple answer is to consistently use one or the other request methods. If you use POST for all requests, you can override isFormSubmission() and onFormChange() to handle your sorting and paging. You could also use GET and a MultiActionController.