• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hiding the value from URL

 
Yed Su
Greenhorn
Posts: 10
Chrome Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the list page of my application I have the edit link as follows beside each row in a list:



But the value of 'id' is being seen on the url when clicked on the link.

Is there a way to suppress/hide the id value from the url.

Regards,
Sudheer
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not with a link. But why bother? If it's for security, then you are barking up the wrong tree.
 
Yed Su
Greenhorn
Posts: 10
Chrome Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apologies! there was no clear description of the problem in my earlier post.

This post is related to spring mvc. As my intent was to be redirected with a click on a link in my list page to edit page, I wanted to pass a parameter- an id which distinguishes the row in a list to my controller via a href. I can achieve this as below:


But the value is visible in the url which is a concern to me. Is there any other approach for the above? Simply, I want to know how I can pass a single parameter our of a bunch of values from my list(view) to the controller.
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yed Su wrote:But the value is visible in the url which is a concern to me.


And why is that?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yed Su wrote:This post is related to spring mvc

There is nothing Spring-specific about what you are asking so we'll keep the discussion here in the HTML forum.

But the value is visible in the url which is a concern to me.

I'll reiterate for the 3rd time in this topic: why?

Again, if it's security then you're approaching the problem incorrectly. And if it is security, what security issue are you concerned about?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic