Uhm gia beh per rediregere la response in java lo fai sull'ggetto HTTPResponse ;D su pho basta che fai una echo $stringa