From taglibs-user-return-10011-apmail-jakarta-taglibs-user-archive=jakarta.apache.org@jakarta.apache.org Wed Mar 01 17:06:03 2006 Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@www.apache.org Received: (qmail 96788 invoked from network); 1 Mar 2006 17:05:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Mar 2006 17:05:57 -0000 Received: (qmail 34315 invoked by uid 500); 1 Mar 2006 17:06:35 -0000 Delivered-To: apmail-jakarta-taglibs-user-archive@jakarta.apache.org Received: (qmail 34281 invoked by uid 500); 1 Mar 2006 17:06:35 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 34269 invoked by uid 99); 1 Mar 2006 17:06:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2006 09:06:35 -0800 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,FORGED_YAHOO_RCVD,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.38.62] (HELO web50308.mail.yahoo.com) (206.190.38.62) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 01 Mar 2006 09:06:34 -0800 Received: (qmail 66050 invoked by uid 60001); 1 Mar 2006 17:06:13 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=yfMuijUd6+Viz54ize6bymeeG253aIlm+e8l1thTEaOFs3U8mKHApHBD2PsKZb9yCcmzSpILzVm8i2CBXSWKxlX28yuIgCiPN6XpaUbd7PbnpfGfSqcMZfuUfAdFjFA+s0qhGDeeF7iDvSPaLOne/kGoiIKEhhYZXF+sRYqbIu4= ; Message-ID: <20060301170613.66048.qmail@web50308.mail.yahoo.com> Date: Wed, 1 Mar 2006 09:06:13 -0800 (PST) From: Subject: Re: URL-escape a var with JSTL To: Tag Libraries Users List In-Reply-To: <4405851E.20306@xsmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, True, but I'm not using to construct my URLs, because my URLs are rewritten (mod_rewrite) and don't look like they are in the webapp context. For example, if I have myapp.war, and URLs are normally under http://example.com/myapp/.... , then yes, c:url would work. However, my links are rewritten, so I have http://example.com/people, etc.... So I construct URLs like this: foo Thanks, Otis ----- Original Message ---- From: Rich To: Tag Libraries Users List Sent: Wednesday, March 1, 2006 6:27:26 AM Subject: Re: URL-escape a var with JSTL I think you just need the tag. -R ogjunk-taglib@yahoo.com wrote: > Hello, > > I need to URL-escape a variable in JSTL, and am not having much luck finding the way to do it. > > For example, I currently do: > > > Since "foo" param may include some funky characters, I need to URL-escape that. So I'm looking for something similar to: > > > > What's the right way to URL-encode a variable with JSTL, without resorting to scriptlets? > Or is the only option to use escapeXml="true" when doing c:out? > > Thanks, > Otis > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: taglibs-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: taglibs-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: taglibs-user-help@jakarta.apache.org