Thanks a lot everybody!  I knew I had seen it somewhere but have been 
suffering brain rot from working too many hours!!!




>From: Simon Evans <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: JRun-Talk <[EMAIL PROTECTED]>
>Subject: RE: coverting whitespace in URL to '%20'
>Date: Fri, 25 May 2001 12:18:09 -0700
>
>use java.net.URLEncoder
>
>for example, this should put the %20 instead of the space
>String param = "FirstName LastName";
>String encodedParam = URLEncoder.encode(param);
>
>
>-----Original Message-----
>From: Scott Smith [mailto:[EMAIL PROTECTED]]
>Sent: Friday, May 25, 2001 11:53 AM
>To: JRun-Talk
>Subject: coverting whitespace in URL to '%20'
>
>
>This may be a stupid question, and I can't believe I haven't run across it
>before but...
>
>Is there a method in the Servlet/JSP API that will convert all characters
>which are illegal in URLs to their legal counterpart?
>
>For example mypage.jsp?name=FirstName LastName  becomes
>mypage.jsp?name=FirstName%20LastName
>
>???
>
>I assume there must be some method that accepts a String (that is to be
>formatted) and returns the formatted String but I surely can't find it.
>
>Thanks!
>
>Scott
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to