Plands.com Logo  Business Internet Services 
Main Menu
Home
Planetary CRM
  Benefits
  Features
  Demo
E-Mail Services
  E-mail Hosting
  Newsletters
  Discussion Lists
Web Hosting
Server Co-location
and Administration
Web Applications
Technical Support
Contact Us
DXP Samples
 
DxpHome  ||   Samples  ||   Details  ||   Docs  ||   Trees  ||   xml-xsl  ||   Links
// UrlEncode.java

UrlEncode encodes String values using the java.net.URLEncoder class to replace chars that would be interpreted as special field delimiters by an HTTP parser with encoded values. After the URL has be parsed by a server the coded values are generally turned back into their inteded text chars.

In this example the content of the tag is encoded and written to the OutputStream

<dxp:UrlEncode>Herbal Discovery</dx:UrlEncode>

In this example a child Parameter tag provides the value to encode and the store attribute tells the UrlEncoder to store the value back in the request under a new parameter name.

<dxp:UrlEncode store="prodEncoded">
   <dxp:Rp name="product" require="true"/>
</dxp:UrlEncode>


@author Mark Ashworth
@version 0.3, 2002-01-08

Return to Index

Note: We have tried to test all of the code examples but they may contain errors. Any questions, comments, suggestions, or problems should be sent to info@plands.com.