Wednesday, June 20, 2012

Creating JAXB classes through ANT Build script

It's just a matter of two steps.....
1) first need to create taskdefination of xjc class of sun.
2) Then need to generate the source code from schema  by creating a task in ant file.
     After generating source code need to do compile task in ant.

Finally JAXB classes are ready.....


Step one:

creating a taskdef of xjc



Step Two:


Thursday, May 3, 2012

Parsing the string by using delimeter in java


import java.util.HashMap;
import java.util.Map;


public class StringParsingDemo {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub

String url = "http://localhost:8080/PrismWeb/REPORT/REPORTS_AggSectorRpt/ACCOUNT/$$BENCHMARK_CD$$/DATE/$$DATE$$/XML/TREE";
        String delims = "[/]+";

String[] tokens = url.split(delims);

   Map mapecm = new HashMap();
for(int i=0; i
String value = tokens[i];
String key = null;
if(value.contains("$") && i > 0 ){
key = tokens[i-1];
mapecm.put(key, value);
}
}
 System.out.println("Mapis " + mapecm);

}

}

Tuesday, April 10, 2012

HTML5 vs FLEX

HTML5 is a very hot topic now a days ...those who are working on flex html5 word is confusing because rumors are coming that flex is going to stop ...and html5 will rule the world in front end development..

on whole post u r ideas on html5 and flex futre