======================================================================
Hello Siros,
Thank you for the interest shown. I will be interested in the way Applets can
achieve what you have suggested in your reply. Could you please send me sample
code or tutorials for achieving results using Applets for both the problems i
am facing..?
I tried calling a cgi script in Netscape Enterprise Server that is installed
on one of the machines in the LAN that we have and using Java Web Server, my
servlet could connect to the resource and was able to send and get data back
from the https resource(cgi script on NES with test certificate from
verisign). I just want to be sure whether the JWS's servlet engine handles all
the details of "https" protocol seamlessly and whether the data exchange
between the resource and my servlet will be secure or not?
Please help me.
Best regards,
Pankaj Acharya
======================================================================
Siros Supavita <[EMAIL PROTECTED]> wrote:
> ---------------------------------------------
> Attachment:
> MIME Type: multipart/alternative
> ---------------------------------------------
Hello Pankaj,
> Hello everybody...!
>
> Two queries, please help me with all the info you know. let
> it be code, links
> to sites.. just anything..!!
>
> 1. I am accessing HTTPS (secure http) resources on the net in
> my servlet. I do
> this using URL and URLConnection objects. This does not work
> with any other
> servlet engine except for the one that comes with Java Web
> Server. When i open
> a "cgi" script as a HTTPS resource i guess the communication
> between my
> servlet and the cgi script is SECURE. am i right in assuming
> this. As far as i
> know.. when i give "https://" request i expect the response
> to be "https" i.e.
> secure and encrypted.
In communication with Web Server using SSL (https://) you need to
use mechanism embedded in Web Browser. You can't open SSL Connection to
https:// in Application (and also Servlet if that Web Server doesn't provide
this mechanism). But in applet, you can (with capability of Web
Browser).
> 2. In the same servlet, how can i decide whether the user is still
> available..? i.e. if the user gets disconnected from the net
> or his browser
> crashes what are the possible ways for me to detect this..?
If you're using Client as plain HTML, I'm afraid that you can't.
'Cos HTTP is connectionless then you can't know whether user is
absent or get crash. Using HttpSession may ease this, but not totally ... if
you're not familiar with HttpSession ... check out in any tutorial
about Servlet.
But if you're using Client as Applet, you have many way to handle
this ... depend on how could you communicate Applet with your Servlet
> Please help me in this. This is urgent. Thank you very much
> for reading
> patiently.
>
> Best regards,
> Pankaj Acharya
Hope this help !
Siros
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html