Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

token

Installing The WiKID HTML5 Token Client
Monday, 22 November 2010 10:57

Installing The WiKID HTML5 Token Client

The WiKID HTML5 token uses the HTML5 APIs to enable the browser to contain an embedded token client. The token uses the same public key + PIN authentication as the standard WiKID tokens but is implemented in JavaScript within the browser. Using HTML5 provides cross-browser support (Firefox and Chrome, not IE yet), a very easy installation process and slick user experience. This tutorial will explain how to install the WiKID HTML5 token client.

Read more: http://howtoforge.com/installing-the-wikid-html5-token-client

 
Overwrite XML data directly using VTD-XML
Friday, 21 May 2010 21:59
// description of your code here
// This example shows you how to overwrite a token using
// VTDNav's overwrite method call
// The basic concept is that if the replacement value is
// shorter than the original token, then you can directly
// write the replacement bytes into the XML message and
// the original VTD structure doesn't change at all!!!


import com.ximpleware.*;
class Overwrite{

public static void main(String s[]) throws Exception{
VTDGen vg = new VTDGen();
vg.setDoc("good".getBytes());
vg.parse(true);
VTDNav vn = vg.getNav();
int i=vn.getText();
//print "good"
System.out.println("text ---> "+vn.toString(i));
if (vn.overWrite(i,"bad".getBytes())){
//overwrite, if successful, returns true
//print "bad" here
System.out.println("text ---> "+vn.toString(i));
}
}
}

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/PUxXI3xVS3k/11421

 


Taxonomy by Zaragoza Online