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
// UrlEncodeArray.java

UrlEncodeArray uses the java.net.URLEncoder class to encode values stored in a target String[] or String[][] array that is stored in the request. This is normally used to create URLs at runtime and embed dynamic values like a sessionID or database query results.

The column attribute is used to specify which col in a String[][] matrix to encode or which elements of a String[] to encode. You can use a comma delimited list to encode more than one col. If you want to encode all values of a String[] you can leave out the column attribute. You must use the column attribute if you want to encode cols of a String[][] matix or individual elements of a String[] array.

Values that are encoded will become part of the String[] array or String[][] matrix. There is no store attribute so you will reference the array or matrix with the same parameter names they had before they were encoded.

In this example a query produced a String[][] (recordset) of records. The first and second cols of the set are encoded. This is a permanent modification and does not create a new recordset. The modified set is still available under to old name it was stored under. This tag is used is stanalone mode and does not implement the Parameter interface.


<dxp:UrlEncodeArray column="0,1" target="queryset"/>


@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.