• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing variable under secure connection  RSS feed

 
Ali Haider
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I had a jsp page, which accessed variables from a previous page. Now I am passing data under secure socket connection. How can I access the variables which I used to access before the secure connection. Now its giving me exception when I'm accessing the variables. Server i'm using is tomcat 3.2.4. Waiting for reply
Thanks and regards
Ali
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not exactly clear on your situation but, as far as I know, you that you cannot pass parameters from an unsecure page to a secure page (i.e. https) or vice versa. You'll get conflicts with the data being encrypted.
Sean
 
Ali Haider
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I just want to know that the site which are made in jsp, those which accept credit cards, how do they retrieve the form variables when they received the values from a secure connection. I'm trying to access but its not working. Reply soon.
Thanks and regards
Ali
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if your web pages use a secure socket (https) to submit the form data, you have to have a server listening on a a secure port then you shouldn't even have to think about the encryption. For example, with bea the defaults are 7001 for regular http requests and 7002 for https requests. The server uses a digital certificate (i.e. verisign) to encrypt/decrypt the data. Basically, once you set up your secure port on your server, the data encryption should be hidden - completely behind the scenes. So if you are having trouble with form data, etc., it's most likely a configuration issue with the server. If you want to know the details on https check out some digital certificate sites. Hope this helps.
Sean
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!