Thursday, 3 April 2014

send data with ,(cama's)

 public String method()throws Exception
{


StringBuffer sb = new StringBuffer(40);
StringBuffer sb1 = new StringBuffer(40);

   
String[] fromcls=request.getParameterValues("fromcls");
for(int i=0;i<fromcls.length;i++)
{
sb.append(fromcls[i]);
System.out.println("fromcls is : "+fromcls[i]);
}

System.out.println("sb is : "+sb);
String[] getsec=request.getParameterValues("getsec");
if(getsec.length==0){
System.out.println("if statement ");
    sb1.append("All");
    }
else{
for(int i=0;i<getsec.length;i++)
{
sb1.append(getsec[i]).append(",");
System.out.println("section is : "+getsec[i]);
}
}
System.out.println("sb1 is : "+sb1);

   
    String msg=Adao.acceptStatus(iid,year,sid,designName,reason,type,sb1,sb,grup);
   
 
return "methodurl";
}

No comments:

Post a Comment