Hello Sieg,
Thank you for you answered to me.
First, I will tell you, that I have solved my
problem :-)
All that I have had to do was: just to encode (the
sending to the Servlet data) with URLEncoder. I was worring before, that the
string which is encoded with this encoder contains some of the symbols that
I was trying to exclude, but later I investigated, that the
Servlet (somehow) understands that these
symbols are from encoding, and ignores them. Then it does not interprets the
other symbols (~, %, &, +) (from my actual string) as special. So
finally I have gotten what I needed.
Now to your questions: 1) yes, my chat works on
port 80 and it is firewall free.
2) I am not using RMI, and I have never used
it, so I cannot help you with RMI :-( - sorry.
Best regards,
Lyubomir.
----- Original Message -----
Sent: Wednesday, January 08, 2003 11:00
PM
Subject: Re: A problem with some
characters receiving...
Lyubomir ,
I don't have an answer to your question
:-(.
Does your chat work on port 80 with a firewall? If
so, does it use Java RMI for applet-servlet communication?
I'm trying to implement something similar and am
wondering if the java RMI on port 80 is effective for firewalls.
Sieg
Lyubomir Pashov <[EMAIL PROTECTED]>
wrote:
Hello, I'm
doing a Java chat project. Briefly – the client's part sends and receives
messages (to and from other clients) through the servlet's part (of the
project) (and the Servlet's doPost(...) method is used for this). I have
the following problem: when a user's message (sentence) contains characters
“~” and “&”, the other user receives only a part from the message –
restricted to the first occurrence of these characters. If the massage
contains “%” then other user receives nothing. Also there is problem with
the “+”.
So I think I must encode (or encrypt) the message thus so to
exclude this characters from the message, and when the message is received,
to decode (decrypt) it. But, how should I make it?
Can anybody show
me a code snipped to solve this problem? And... any suggestions are
appreciated.
Thanks, Lyubomir.
____________________
_______________________________________________________ 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
Do you Yahoo!? Yahoo! Mail
Plus - Powerful. Affordable. Sign up
now
|