0

I am creating an application using spring mvc, in all of my application i have written the methods using @Request Mapping in the following manner:

@RequestMapping(value = "/txnMst/{portNumber}", method = RequestMethod.GET)

As you can see that in the request mapping i am passing the portNumber which is displayed later in the URL like this (portNumber is 3333 in the example):

http://localhost:8080/admin/txnScript/txnMst/3333

Now i want to hide these data i.e the portNumber, is there any way how i can achieve this.

Please provide some help.

3
  • Read through GET and POST method? Commented Sep 24, 2015 at 9:18
  • @Soorapadman can i do it using encryption? Commented Sep 24, 2015 at 9:21
  • This may help: stackoverflow.com/questions/4143196/… Commented Sep 24, 2015 at 9:28

1 Answer 1

2

If the client doesn't need this data why are you storing it in URL? An alternative place to store that data is in the session.

Storing server values in client, expecting that them will be returned unaltered is a bad idea.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.