• 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

Hiding request parameters while redirecting request

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am redirecting my request to another application.
I want to pass userName and password to this application.
I would like that the userName and password are not visible in URL .
When i use response.sendRedirect(url) I am not able to hide them.
Can any one suggest me some other option to overcome this.

Thanks
Nitin
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I assume that you use a form tag of html to get username and password.
place the method =post attribute in the form tag bcoz default is method=get.
this might solve ur problem.
You can keep the url as of now during development to check if your username and password are actually being sent. when you complete your project or assignment just change the method=post in form tag.

Reply on success.
 
NitinJ Gupta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sandeep,

I am having a bigger problem than this
I dont know the application to redirect in advance
Based on my user name say "nitin@kalzoom.com" i pick "kalzoom" and decide where to forward my request .
I want this processing to be done at server side .

Can u please help
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no idea as such.

couldn't you encrypt the password at your side and have a key there at recepient end. just a thought.
 
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic