Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

modifying URL query string

 
Anks Gupta
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic