Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

URL encoding and decoding

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello friends,

I need your help. Currently in my project i am making use of queryString .... but the query string is very obvious for users to play with like for e.g. " ?empNo=5123&&serviceNo=1204" I want to ENCODE this query String so that users do not understand what goes in the query string. Also on the server end i must be able to DECODE the query String and retrieve the name-value parameters from it. Is there any such facility available in the J2EE API ? I am using Tomcat 4.0, jdk1.4, and Struts. The specification that i am using is JSP 1.3 and Servlet 2.3. Please,...help me!

Million thanks in advance
Omkar Patkar.
[ July 12, 2007: Message edited by: Bear Bibeault ]
 
Sheriff
Posts: 67650
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are talking about encryption, not encoding. And yes, it's a good idea to encrypt critical values like primary keys.

I've moved this to the Security forum where you are likely to get more responses.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic