wood burning stoves
The moose likes JSF and the fly likes modifying URL query string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "modifying URL query string " Watch "modifying URL query string " New topic

modifying URL query string

Anks Gupta

Joined: Mar 27, 2007
Posts: 21

My app is launched from a portal hyperlink where some parameters are passed in the queryString which i use in my initial jsp page. portal sends those parameters in a get request, and after hitting a service i render response i.e. my first page using :
request.getRequestDispatcher(baseUrl).forward(request, response); where baseUrl = "/forms/index.jsf".

Basically after page load also that query string appears in the URL which being sensitive, i dont want it to happen.

i cannot use sendRedirect as page to be appeared must go through JSF life cycle at server end.

So is there a way through which i can hide my query string or can encrypt it..?

when i submit the current form, and goes to next page that query string dissapears. My URL looks like http://localhost:8080/Project/forms/index.jsf . This is what i am expecting in initial page load also. but on initial page load query String is also appearing. I cannot make the method as post as this is beyond my control.

SO i want http://localhost:8080/Project/forms/index.jsf to be my URl after render response for the 1st time also.
I agree. Here's the link: http://aspose.com/file-tools
subject: modifying URL query string
jQuery in Action, 3rd edition