My Application gets loaded from a hyperlink in a portal where parameters required by my applications are sent in a query String( Get request). Now after using those parameters in my business logic, My page which gets rendered has that query String still in URL. I am using requestDispatcher to render the response. I cant use sendRedirect as i need server side response because of my application requirements.
I dont want this query string in URL as it has some sensitive data.
So i want to convert my Get Request to POST before it hits the business logic.
Is it possible? If yes than please let me know the wayout.
I do not have access to modify portal so i cant make it a POST request on initial hit.
I think you can try with filter.
I was reading filter, then came to know that you can process your request before submitting to Business Logic,
and that is also not visible to cleint or in URL.
You can work aroud filters. Maybe can help you.
If the browser sent a GET, then nothing that's done on the server will convince it otherwise, and the parameters will be shown. Filters can do nothing about this. You'll need to do a client-side redirect.