Mike: I am with you. Witold: In your case, if you are using GET method to submit the paramaters. You will see the following encoded URL in your borwser's address bar.
STREET_NO: 2% STREET_NAME: UNI% A_SPACE: A A (a space in the middle of two A chars) e.g. http://localhost:8080/myservlet?STREET_NO=2%25&STREE_NAME=UNI%25&A_SPACE=A+A where '%' is encoded to "%25" and space is encoded "+". You can test it in many search engines, say, ww.google.com >From : "Mike Wannamaker" <[EMAIL PROTECTED]> on 30/05/2002 10:28:14 AM To: [EMAIL PROTECTED] cc: (bcc: Victor HT CHEUNG/HD/HKSARG) Subject: [jdjlist] Re: Servlet Request parameters and % Usually in forms the space is replaced with + or %20. I thought that if you use the submit on a form then it would handle encoding all special characters? I didn't think it mattered whether get/post. If you are using a form and then when a button is clicked you are trying to submit your own request then you would have to encode the values yourself. --ekiM On Wed, 2002-05-29 at 13:17, Alan Williamson wrote: ||| Let me prvoide some info on % from Servlets point of ||| view. As Witold mentioned, % has special meaning in ||| Servlets environment. It represents a space character ||| in the URL request. hate to disagree with you ... but no it doesn't. the % represents an escape sequence followed by the hex of the character it is representing. For %20 is SPACE alan To change your membership options, refer to: http://www.sys-con.com/java/list.cfm To change your membership options, refer to: http://www.sys-con.com/java/list.cfm <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8"> <META NAME="GENERATOR" CONTENT="GtkHTML/1.0.3"> </HEAD> <BODY> Usually in forms the space is replaced with + or %20. I thought that if you use the submit on a form then it would handle encoding all special characters? I didn't think it mattered whether get/post. If you are using a form and then when a button is clicked you are trying to submit your own request then you would have to encode the values yourself. <BR> <BR> --ekiM <BR> <BR> On Wed, 2002-05-29 at 13:17, Alan Williamson wrote: <BLOCKQUOTE> <PRE><FONT COLOR="#d73c35"><FONT SIZE="3"><I>||| Let me prvoide some info on % from Servlets point of</FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I>||| view. As Witold mentioned, % has special meaning in</FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I>||| Servlets environment. It represents a space character</FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I>||| in the URL request. </FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I></FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I>hate to disagree with you ... but no it doesn't.</FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I></FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I>the % represents an escape sequence followed by the hex of the character it</FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I>is representing.</FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I></FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I>For %20 is SPACE</FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I></FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I>alan</FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I></FONT></FONT></I> <FONT COLOR="#d73c35"><FONT SIZE="3"><I>To change your membership options, refer to:</FONT></FONT></I></PRE> </BLOCKQUOTE> <A HREF="http://www.sys-con.com/java/list.cfm"><FONT SIZE="3"><I>http://www.sys-con.com/java/list.cfm</FONT></I></A> <BLOCKQUOTE> <PRE></PRE> </BLOCKQUOTE> To change your membership options, refer to: <BR> http://www.sys-con.com/java/list.cfm </BODY> </HTML> ----------------------------- Disclaimer: This email (including every file transmitted with it) may contain confidential and privileged information and is solely for the use of the intended recipient(s). Any unauthorised dissemination, distribution or copying of this email is strictly prohibited. Please notify the sender and delete this email immediately if you have received this by mistake. We do not accept liability arising from email transmitted by mistake. To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
