Hi I need the code conversion for that into JSP.
$var1 = $_POST['userAge'];
$var2 = $_POST['userBirth'];
$url = 'http://externalwebsite.com/script.php?temp1=' . $var1 . '&temp2=' . $var2;
$content = file_get_contents($url);
So hire someone. This is not a free coding service. You need to understand what the PHP does, which is off-topic for this forum, then you need to translate that into the equivalent JSP, which is rather trivial if you know anything at all aut JSP.