String name = request.getParamert("name");if(name.length > 10){ name = name.subString(0,10)+"......";}