wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes how to encode query string. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "how to encode query string." Watch "how to encode query string." New topic
Author

how to encode query string.

hasan khan
Ranch Hand

Joined: Aug 04, 2003
Posts: 222

i have some links in my jsp page with query string, i want to do some kind of basic encoding to name/value parameter to hide from the end user.

for e.g. i have a link like http://www.mysite.com/abc.do?customerid=1234&orderid=789

(i dont want to use post request)


SCJP, SCWCD
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
I haven't worked much in web technology. But cant you use any hidden textfields and access it in the next page ?


Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
Patrick Williams
Ranch Hand

Joined: Apr 03, 2005
Posts: 213
Hi Hasan, I think you might be on the wrong forum, but if you are looking at cust id and order id, might I suggest using a cookie (whether it be proprietary or or the implicit JSESSIONID) and using a HttpSession object to control order id's (or a cookie for that as well). Just my .02.


Patrick<br /> <br />SCJP/SCWCD/SCBCD/SCDJWS/SCEA<br /> <br />Currently working on:<br />SCJP 6
 
Consider Paul's rocket mass heater.
 
subject: how to encode query string.
 
Similar Threads
Choose primary key for CMR entity beans
Ajax call for window.location.href
how to remove the port number in URL
how do i encrypt/decrypt query string.
query works in SQL server but not Access :'(