Issue about writing custom VaadinServlet


I am writing my custom VaadinServlet to process HttpRequest sending from UI when user clicked different button. For example, when user clicked a button request to forward to a different page, we will getPage.setLocation method to send a request with url like “?command=page&page=showUsers”. Our custom servlet would handle that request and redirect to appropriate UI class. However, I found that the servlet might be visited twice, one with primitive parameters we sent, another with additional parameters with v-* parameter names. Sometimes, the servlet got visited once with primitive parameters. That behavior really bothers me, because I don’t when I should choose to ignore, when I should process. Please kindly advise.

Many thanks,