• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

modifying URL query string

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic