This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
    Bookmark Topic Watch Topic
  • New Topic

How to send hidden variable in sendRedirect(url) method

 
rev sam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am sending url using sendRedirect method along with some parameters.

I dont want these parameters to be visible in clienturl.How to hide these parameters? I am new to jave.please help me in getting this.

Say for EX: http://localhost/manager/test.php?test=rev

I dont want the name "test" to be visible.How to hide it and send back to url(using sendRedirect()) method
 
K Kiran Kumar
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Sam,
Instead of appending the variables in the URL, better save them in a session and retrieve the same when you need them. Here your privacy is maintained while redirecting. You can also use removeAttribute() method to delete the unwanted attributes.
Regards,
Kiran.
[ May 27, 2008: Message edited by: K Kiran Kumar ]
 
rev sam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Report post to moderator
we cannot use session here. we have some plan to access this url using webservices
 
cortin flaneir
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Report post to moderator
if you use servlet then set this value in servletcontext and then retrive value whenever you want.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64607
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue any discussion in the original post on this topic.
 
    Bookmark Topic Watch Topic
  • New Topic