Isn't there any other way to do the same thing i had to do this becase i'm passing from1 to some constructor which accept simple string. not String[] String from[] = request.getParameterValues("from");
String to[] = request.getParameterValues("to");
String sub[] = request.getParameterValues("sub");
String message[] = request.getParameterValues("message");
String from1,to1,sub1,message1;
from1 = from[0];
to1 = to[0];
sub1 = sub[0];
message1 = message[0];