Sunday, November 6, 2011

plusone-button + 1 to your web site.

By adding these icon you can get benefits to send the information about
your website to other users.


There is some basic steps to add the g+ button in your web site.

  • add this tag in body part of jsp/html
        <g:plusone></g:plusone>
and in the head section call the js function



<script type="text/javascript">
      window.___gcfg = {
        lang: 'en-US'
      };


      (function() {
        var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
        po.src = 'https://apis.google.com/js/plusone.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
      })();
    </script>




Change Hibernate Mapping to Retrieve a List instead of a Set


Table 1- Employee
Table 2 - Destination
Relationship : Employee has multiple destinations
when you did the reverse engineering it will give the Set in Employee table.
Now we want to convert the set into list.so first of all we change the Set
object into the java.util.list object in the POJO file of employee
(which is made in dao folder when you make the reverse engineering )

Example: Set 
public class Employeeaddress implements java.io.Serializable {
private Set destinations = new HashSet(0);
/** full constructor */
public Employeeaddress( Set destinations){
    this.destinations = destinations;
    }

public Set getDestinations() {
return this.destinations;
}
public void setDestinations(Set destinations) {
this.destinations = destinations;
}
}

Convert into list :
Note: Change the set to list

  • private List destinations = new ArrayList();


public List getDestinations() {
return this.destinations;
}

public void setDestinations(List destinations) {
this.destinations = destinations;
}


  • 3- Change into the HBM file .


<list name="destinations" table="destinations">
    <key column="ID" />
    <list-index column="Location" />
   <one-to-many class="com.doa.Destination"/>
</list>


OR another example of List:

<list name="carComponents"
        table="CarComponents">
    <key column="carId"/>
    <list-index column="sortOrder"/>
    <composite-element class="CarComponent">
        <property name="price"/>
        <property name="type"/>
        <property name="serialNumber" column="serialNum"/>
    </composite-element>
</list>


For more information : http://docs.jboss.org/hibernate/core/3.3/reference/en/html/collections.html


Thursday, June 9, 2011

Encription AND Decription of a file in java

package com.cpn.test;
import java.io.*;
import java.security.*;
import java.security.spec.AlgorithmParameterSpec;

import javax.crypto.*;
import javax.crypto.spec.*;
import java.util.*;
public class Test {
Cipher ecipher;
Cipher dcipher;

DesEncrypter(SecretKey key) {
// Create an 8-byte initialization vector
byte[] iv = new byte[]{
(byte)0x8E, 0x12, 0x39, (byte)0x9C,
0x07, 0x72, 0x6F, 0x5A
};
AlgorithmParameterSpec paramSpec = new IvParameterSpec(iv);
try {
ecipher = Cipher.getInstance("DES/CBC/PKCS5Padding");
dcipher = Cipher.getInstance("DES/CBC/PKCS5Padding");

// CBC requires an initialization vector
ecipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);
dcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);
} catch (java.security.InvalidAlgorithmParameterException e) {
} catch (javax.crypto.NoSuchPaddingException e) {
} catch (java.security.NoSuchAlgorithmException e) {
} catch (java.security.InvalidKeyException e) {
}
}

// Buffer used to transport the bytes from one stream to another
byte[] buf = new byte[1024];

public void encrypt(InputStream in, OutputStream out) {
try {
// Bytes written to out will be encrypted
out = new CipherOutputStream(out, ecipher);

// Read in the cleartext bytes and write to out to encrypt
int numRead = 0;
while ((numRead = in.read(buf)) >= 0) {
out.write(buf, 0, numRead);
}
out.close();
} catch (java.io.IOException e) {
}
}

public void decrypt(InputStream in, OutputStream out) {
try {
// Bytes read from in will be decrypted
in = new CipherInputStream(in, dcipher);

// Read in the decrypted bytes and write the cleartext to out
int numRead = 0;
while ((numRead = in.read(buf)) >= 0) {
out.write(buf, 0, numRead);
}
out.close();
} catch (java.io.IOException e) {
}
}
public static void main(String[] args) {
try {
// Generate a temporary key. In practice, you would save this key.
// See also Encrypting with DES Using a Pass Phrase.
SecretKey key = KeyGenerator.getInstance("DES").generateKey();

// Create encrypter/decrypter class
DesEncrypter encrypter = new DesEncrypter(key);

// Encrypt
encrypter.encrypt(new FileInputStream("D:\\Ravendra\\clear1.txt"),
new FileOutputStream("D:\\Ravendra\\ciphertext"));

// Decrypt
encrypter.decrypt(new FileInputStream("D:\\Ravendra\\ciphertext"),
new FileOutputStream("D:\\Ravendra\\cleartext2.txt"));
} catch (Exception e) {
}

}
}

Thursday, March 10, 2011

Make Tree with Checkbox Using YUI2 API AND Dynamic Loading Data from Db using the JSON for JAVA Developer

YUI TreeView js files:


<style>

.ygtvcheck0 { background: url(http://developer.yahoo.com/yui/examples/treeview/assets/img/check/check0.gif) 0 0 no-repeat; width:16px; cursor:pointer }
.ygtvcheck1 { background: url(http://developer.yahoo.com/yui/examples/treeview/assets/img/check/check1.gif) 0 0 no-repeat; width:16px; cursor:pointer }
.ygtvcheck2 { background: url(http://developer.yahoo.com/yui/examples/treeview/assets/img/check/check2.gif) 0 0 no-repeat; width:16px; cursor:pointer }
</style>

<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js&2.8.2r1/build/treeview/treeview-min.js"></script>
        <script src="http://yui.yahooapis.com/2.8.2r1/build/json/json-min.js"></script>

 

JSON DATA WHICH IS RETURN FROM SERVLET:

for ex:

temp = {"myNodeId":1,"label":"India"},{"myNodeId":15712,"label":"Pakistan"}

 

// yahoo example
var leftTree;
var   rightTree;
function treeInit(treedata) {
    //  maketree(treedata);
    var prod = YAHOO.lang.JSON.parse(treedata);
    leftTree = new YAHOO.widget.TreeView("treeDiv1",prod);
    leftTree.subscribe("labelClick", function(noder) {
        var tpid = noder.data.myNodeId ;

        TerritoryGroupDWR.getChildLeftTree(tpid,function (data){
            var _prod = YAHOO.lang.JSON.parse(data);

            for(var i=0;i<_prod.length;i++){
                 var tmpNode = new YAHOO.widget.TextNode(_prod[i],noder,true);
            }
            noder.refresh();
            noder.expand();
        });
       
    });

    leftTree.subscribe("clickEvent",leftTree.onEventToggleHighlight);
    leftTree.setNodesProperty("propagateHighlightUp",true);
    leftTree.setNodesProperty("propagateHighlightDown",true);

    leftTree.render();
}

function AssignTerritory()
{
    var IDS = [];
    var hiLit = leftTree.getNodesByProperty('highlightState',1);
    if (YAHOO.lang.isNull(hiLit)) {
        YAHOO.log("None selected");
    } else {
        var labels = [];
        for (var i = 0; i < hiLit.length; i++) {
            labels.push(hiLit[i].label);
            IDS.push(hiLit[i].data.myNodeId);
        }
    }
    getRightTree(IDS)
}

function removeSelectedNodesFromRightTree()
{
    var IDS = [];
    var hiLit = rightTree.getNodesByProperty('highlightState',1);
    if (YAHOO.lang.isNull(hiLit)) {
        YAHOO.log("None selected");
    } else {
        var labels = [];

        for (var i = 0; i < hiLit.length; i++) {
            //alert(hiLit[i].data.myNodeId)
            labels.push(hiLit[i].label);
            IDS.push(hiLit[i].data.myNodeId);
        }
    // alert("Highlighted nodes:\n" + IDS.join("\n"), "info", "example");
    }
    removeSelectedNodes(IDS)
}

function removeSelectedNodes(IDS)
{
    TerritoryGroupDWR.removeSelectedNodes(IDS,function (data){
        removeSelectedNodesFromRightTreeAndRefresh(data)
    });
}



function removeSelectedNodesFromRightTreeAndRefresh(IDS)
{

//    rightTree = new YAHOO.widget.TreeView("treeDiv2");
//
//    var tmpNode = new YAHOO.widget.TextNode({
//        label: "",
//        expanded: false
//    }, rightTree.getRoot());

    var treedata = '{"myNodeId":0,"label":"Root"}';
    var prod = YAHOO.lang.JSON.parse(treedata);


    rightTree = new YAHOO.widget.TreeView("treeDiv2",prod);

    var root = rightTree.getRoot();

    // var node=rightTree.getNodeByIndex(1);
    if(IDS!=null && IDS.length>0){
    for(var i =0;i<IDS.length;i++){
        TerritoryGroupDWR.removeSelectedNodesFromRightTreeAndRefresh(IDS[i],function (data){
            var prod = YAHOO.lang.JSON.parse(data);
            for(var i=0;i<prod.length;i++){
                //var tmpNode = new YAHOO.widget.TaskNode(prod1[i], noder, false);
                var tmpNode1 = new YAHOO.widget.TextNode(prod[i],root,true);

                rightTree.subscribe("labelClick", function(noder) {
                    var tpid = noder.data.myNodeId ;
                    TerritoryGroupDWR.getChildRightTree(tpid,function (data){
                        var _prod = YAHOO.lang.JSON.parse(data);

                        for(var i=0;i<_prod.length;i++){
                            //var tmpNode = new YAHOO.widget.TaskNode(prod1[i], noder, false);
                            var tmpNode3 = new YAHOO.widget.TextNode(_prod[i],noder,true);
                        }
                        noder.refresh();
                        noder.expand();
                    });
                });
            }
            root.refresh();
            root.expand();

        });
    }
}
    rightTree.subscribe("clickEvent",rightTree.onEventToggleHighlight);
    rightTree.setNodesProperty("propagateHighlightUp",true);
    rightTree.setNodesProperty("propagateHighlightDown",true);
    rightTree.render();
}



function getRightTree(IDS)
{
    var root = rightTree.getRoot();

    for(var i =0;i<IDS.length;i++){
        TerritoryGroupDWR.getSelectedNode(IDS[i],function (data){
            var prod = YAHOO.lang.JSON.parse(data);

            for(var i=0;i<prod.length;i++){
                var tmpNode = new YAHOO.widget.TextNode(prod[i],root,true);

                rightTree.subscribe("labelClick", function(noder) {
                    var tpid = noder.data.myNodeId ;
                    TerritoryGroupDWR.getChildRightTree(tpid,function (data){
                        var _prod = YAHOO.lang.JSON.parse(data);

                        for(var i=0;i<_prod.length;i++){
                            var tmpNode3 = new YAHOO.widget.TextNode(_prod[i],noder,true);
                        }
                        noder.refresh();
                        noder.expand();
                    });
                });
            }
            root.refresh();
            root.expand();

        });
    }

}
function treeInitRight(treedata) {
    //  maketree(treedata);
   
    if(treedata=='[]') treedata = '{"myNodeId":0,"label":"Root"}';
    var prod = YAHOO.lang.JSON.parse(treedata);


    rightTree = new YAHOO.widget.TreeView("treeDiv2",prod);
//else{
//
//    rightTree = new YAHOO.widget.TreeView("treeDiv2");
//
//        var tmpNode = new YAHOO.widget.TextNode({
//        label: "",
//        expanded: false
//    }, rightTree.getRoot());
//}


    rightTree.subscribe("labelClick", function(noder) {
        var tpid = noder.data.myNodeId ;

        TerritoryGroupDWR.getChildLeftTree(tpid,function (data){
            var _prod = YAHOO.lang.JSON.parse(data);

            for(var i=0;i<_prod.length;i++){

                var tmpNode = new YAHOO.widget.TextNode(_prod[i],noder,true);
            }
            noder.refresh();
            noder.expand();
        });
    });

    rightTree.subscribe("clickEvent",rightTree.onEventToggleHighlight);
    rightTree.setNodesProperty("propagateHighlightUp",true);
    rightTree.setNodesProperty("propagateHighlightDown",true);

    rightTree.render();
}

JSP FILE:




<div align="left" class="break2"></div>
<div align="left" class="break2"></div>
<div align="left" class="break2"></div>
<div align="left" class="break2"></div>

<div align="left" style="margin-left:0.5%;">
    <div align="center" >Territory Group Involvement</div>
    <div id="headercontainer33" style="border: #000000 solid 1px;" >
        <div id="treeDiv1" class="ygtv-checkbox" style="height:450px;overflow:auto;" ></div>
    </div>
    <div id="headercontainer33" align="center" style="border: #000000 solid 1px; margin-top: 225px;" >
        <div  id="tablerow10" align="right"> <input type ="button"  onclick="javascript:AssignTerritory();" value="Assign Territory" class="buttons"></div>
        <div id="tablerow10" style="margin-left:10px;"> <input type ="button" onclick="javascript:removeSelectedNodesFromRightTree();" value="Un-Assign Territory" class="buttons" > </div>
    </div>
    <div id="headercontainer33" style="border: #000000 solid 1px;">
        <div id="treeDiv2" class="ygtv-checkbox" style="height:450px;overflow:auto;" ></div>
    </div>
    <div align="left" class="break3"></div>
    <div id="tablerow" align="right"> <input type="button" value="Save"  class="buttons"/>
        <input type="button" value="Cancel" onclick="javascript:loadinnerTerritoryGroupJSP();" class="buttons"/>
    </div>

</div>






DWR CODE:


/* Territory Group involment (Tree) work starts now
     *
     *
     */
    List<Integer> selectedNodeList = new ArrayList<Integer>();
    String previd = "";
    String _previd = "";

    public String[] getLeftTerritoryTree(String territoryGroupId) {
        String forwardJSP[] = new String[2];


        String json = "{}";
        Long teritorryPId = 0L;
        try {
            selectedNodeList = new ArrayList<Integer>();
            WebContext wctx = WebContextFactory.get();
            HttpSession session = wctx.getSession();
            Properties properties = new Properties();
            InitialContext ic = new InitialContext(properties);
            ITeritorryBIRemote teritorryBIRemote = (ITeritorryBIRemote) ic.lookup(ITeritorryBIRemote.class.getName());

            TerritoryGroupSessionBeanRemote territoryGroupSessionBeanRemote = (TerritoryGroupSessionBeanRemote) ic.lookup(TerritoryGroupSessionBeanRemote.class.getName());

            List<YahooTerritoryForm> list = teritorryBIRemote.findRootTerritory(teritorryPId);
            JSONSerializer serializer = new JSONSerializer();
            serializer.registerDefaultSerializers();
            serializer.setMarshallClassHints(false);
            serializer.setDebug(true);
            serializer.setMarshallNullAttributes(false);
            String temp = serializer.toJSON(list);
            temp = temp.replace("{\"list\":[", "");
            temp = temp.substring(0, temp.length() - 2);

            System.out.println("getLeftTerritoryTree() temp = " + temp);

            forwardJSP[1] = "[" + temp + "]";

            forwardJSP[0] = wctx.forwardToString("/jsp/TerritoryGroup/TerritoryGrpInvl.jsp");


            previd = "";
            _previd = "";
        } catch (Exception e) {
            e.printStackTrace();
            Logger.printError("ERROR", "TerritoryGroupDWR.getLeftTerritoryTree() ", e);
        }
        return forwardJSP;
    }

    public String[] getRightTerritoryTree(Long territoryGroupId) {
        String forwardJSP[] = new String[2];
        String json = "{}";

        try {
            selectedNodeList = new ArrayList<Integer>();
            WebContext wctx = WebContextFactory.get();
            HttpSession session = wctx.getSession();
            Long UserAccountID = (Long) session.getAttribute("UserAccountID");
            Properties properties = new Properties();
            InitialContext ic = new InitialContext(properties);
            TerritoryGroupSessionBeanRemote territoryGroupSessionBeanRemote = (TerritoryGroupSessionBeanRemote) ic.lookup(TerritoryGroupSessionBeanRemote.class.getName());

            List<YahooTerritoryForm> list = new ArrayList<YahooTerritoryForm>();
            list = territoryGroupSessionBeanRemote.getRightTerritoryTree(UserAccountID, territoryGroupId);
            JSONSerializer serializer = new JSONSerializer();
            serializer.registerDefaultSerializers();
            serializer.setMarshallClassHints(false);
            serializer.setDebug(true);
            serializer.setMarshallNullAttributes(false);
            String temp = serializer.toJSON(list);
            temp = temp.replace("{\"list\":[", "");
            temp = temp.substring(0, temp.length() - 2);

            System.out.println("getRightTerritoryTree() temp = " + temp);

            forwardJSP[1] = "[" + temp + "]";
            forwardJSP[0] = wctx.forwardToString("/jsp/TerritoryGroup/TerritoryGrpInvl.jsp");
            previd = "";
            _previd = "";

//Add inrolled territories in global list if found
            if (list.size() > 0) {

                Iterator<com.synapse.common.forms.YahooTerritoryForm> iterator = list.iterator();
                while (iterator.hasNext()) {

                    com.synapse.common.forms.YahooTerritoryForm yahooTerritoryForm = iterator.next();
                    selectedNodeList.add(yahooTerritoryForm.getMyNodeId().intValue());
                }

            }
        } catch (Exception e) {
            e.printStackTrace();
            Logger.printError("ERROR", "TerritoryGroupDWR.getRightTerritoryTree() ", e);
        }
        return forwardJSP;
    }

    public String getChildLeftTree(String tpid) {

        String forwardJSP = "";
        String json = "{}";

        Long teritorryPId = 0L;
        try {
            if (tpid != null && !tpid.equals("")) {
                teritorryPId = Long.parseLong(tpid);
                WebContext wctx = WebContextFactory.get();
                HttpSession session = wctx.getSession();
                Properties properties = new Properties();
                InitialContext ic = new InitialContext(properties);
                ITeritorryBIRemote teritorryBIRemote = (ITeritorryBIRemote) ic.lookup(ITeritorryBIRemote.class.getName());

                List<YahooTerritoryForm> list = teritorryBIRemote.findRootTerritory(teritorryPId);
                JSONSerializer serializer = new JSONSerializer();
                serializer.registerDefaultSerializers();
                serializer.setMarshallClassHints(false);
                serializer.setDebug(true);
                serializer.setMarshallNullAttributes(false);
                String temp = serializer.toJSON(list);
                temp = temp.replace("{\"list\":[", "");
                temp = temp.substring(0, temp.length() - 2);
                //  json = "{" + temp + "}";
                System.out.println("getChildLeftTree() temp = " + temp);
                //String x="{myNodeId:1,label:\"India\",expanded:false},{myNodeId:15712,label:\"Pakistan\",expanded:false}";
                if (!previd.equals(tpid)) {
                    forwardJSP = "[" + temp + "]";
                } else {
                    forwardJSP = "[]";
                }
                previd = tpid;

            }

        } catch (Exception e) {
            e.printStackTrace();
            Logger.printError("ERROR", "TerritoryGroupDWR.getchild() ", e);
        }
        return forwardJSP;



    }

    public String getChildRightTree(String tpid) {
        //String x="{\"myNodeId\":110,\"label\":\"India1\",\"expanded\":\"true\"},{\"myNodeId\":15713,\"label\":\"Pakistan1\",\"expanded\":\"true\"}";
        //return "["+x+"]";

        String forwardJSP = "";
        String json = "{}";

        Long teritorryPId = 0L;
        try {
            if (tpid != null && !tpid.equals("")) {
                teritorryPId = Long.parseLong(tpid);
                WebContext wctx = WebContextFactory.get();
                HttpSession session = wctx.getSession();
                Properties properties = new Properties();
                InitialContext ic = new InitialContext(properties);
                ITeritorryBIRemote teritorryBIRemote = (ITeritorryBIRemote) ic.lookup(ITeritorryBIRemote.class.getName());

                List<YahooTerritoryForm> list = teritorryBIRemote.findRootTerritory(teritorryPId);
                JSONSerializer serializer = new JSONSerializer();
                serializer.registerDefaultSerializers();
                serializer.setMarshallClassHints(false);
                serializer.setDebug(true);
                serializer.setMarshallNullAttributes(false);
                String temp = serializer.toJSON(list);
                temp = temp.replace("{\"list\":[", "");
                temp = temp.substring(0, temp.length() - 2);
                //  json = "{" + temp + "}";
                System.out.println("json temp = " + temp);
                //String x="{myNodeId:1,label:\"India\",expanded:false},{myNodeId:15712,label:\"Pakistan\",expanded:false}";

                if (!_previd.equals(tpid)) {
                    forwardJSP = "[" + temp + "]";
                } else {
                    forwardJSP = "[]";
                }
                _previd = tpid;


            }

        } catch (Exception e) {
            e.printStackTrace();
            Logger.printError("ERROR", "TerritoryGroupDWR.getchild() ", e);
        }
        return forwardJSP;



    }

    public String[] removeSelectedNodes(String nodes[]) {
        String returnNodes[] = null;

        try {

            for (int i = 0; i < nodes.length; i++) {
                String tmp = nodes[i];

                if (selectedNodeList.contains(Integer.parseInt(tmp))) {
                    for (int j = 0; j < selectedNodeList.size(); j++) {

                        if (tmp.equals(selectedNodeList.get(j).toString())) {

                            selectedNodeList.remove(j);

                        }
                    }
                }
            }


            returnNodes = new String[selectedNodeList.size()];

            Iterator<Integer> selectedNodeListIterator = selectedNodeList.iterator();
            int j = 0;
            while (selectedNodeListIterator.hasNext()) {
                Integer node = selectedNodeListIterator.next();
                returnNodes[j] = String.valueOf(node);

                j++;
            }
        } catch (Exception e) {
            e.printStackTrace();
            Logger.printError("ERROR", "TerritoryGroupDWR.removeSelectedNodes() ", e);
        }
        return returnNodes;
    }

    public String getSelectedNode(String tpid) {

        String forwardJSP = "";
        String json = "{}";

        Long teritorryId = 0L;
        try {
            String temp = "";
            if (tpid != null && !tpid.equals("")) {
                if (!selectedNodeList.contains(Integer.parseInt(tpid))) {
                    selectedNodeList.add(Integer.parseInt(tpid));

                    teritorryId = Long.parseLong(tpid);
                    WebContext wctx = WebContextFactory.get();
                    HttpSession session = wctx.getSession();
                    Properties properties = new Properties();
                    InitialContext ic = new InitialContext(properties);
                    ITeritorryBIRemote teritorryBIRemote = (ITeritorryBIRemote) ic.lookup(ITeritorryBIRemote.class.getName());

                    List<YahooTerritoryForm> list = teritorryBIRemote.getSelectedNode(teritorryId);
                    JSONSerializer serializer = new JSONSerializer();
                    serializer.registerDefaultSerializers();
                    serializer.setMarshallClassHints(false);
                    serializer.setDebug(true);
                    serializer.setMarshallNullAttributes(false);
                    temp = serializer.toJSON(list);
                    temp = temp.replace("{\"list\":[", "");
                    temp = temp.substring(0, temp.length() - 2);

                    System.out.println("json temp = " + temp);

                    forwardJSP = "[" + temp + "]";


                } else {
                    forwardJSP = "[" + temp + "]";
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
            Logger.printError("ERROR", "TerritoryGroupDWR.getchild() ", e);
        }
        return forwardJSP;



    }

    public String removeSelectedNodesFromRightTreeAndRefresh(String tpid) {

        String forwardJSP = "";
        String json = "{}";

        Long teritorryId = 0L;
        try {
            String temp = "";
            if (tpid != null && !tpid.equals("")) {

                teritorryId = Long.parseLong(tpid);
                WebContext wctx = WebContextFactory.get();
                HttpSession session = wctx.getSession();
                Properties properties = new Properties();
                InitialContext ic = new InitialContext(properties);
                ITeritorryBIRemote teritorryBIRemote = (ITeritorryBIRemote) ic.lookup(ITeritorryBIRemote.class.getName());

                List<YahooTerritoryForm> list = teritorryBIRemote.getSelectedNode(teritorryId);
                JSONSerializer serializer = new JSONSerializer();
                serializer.registerDefaultSerializers();
                serializer.setMarshallClassHints(false);
                serializer.setDebug(true);
                serializer.setMarshallNullAttributes(false);
                temp = serializer.toJSON(list);
                temp = temp.replace("{\"list\":[", "");
                temp = temp.substring(0, temp.length() - 2);
                //  json = "{" + temp + "}";
                System.out.println("json temp = " + temp);
                forwardJSP = "[" + temp + "]";

            } else {
                forwardJSP = "[" + temp + "]";
            }
        } catch (Exception e) {
            e.printStackTrace();
            Logger.printError("ERROR", "TerritoryGroupDWR.getchild() ", e);
        }
        return forwardJSP;



    }
}





Sunday, February 27, 2011