This is PHP.
$url = "http://localhost:8089/jsp.jsp";
$post _data = Array ("username" = "Bob", "key" = "12345");
$ch = Curl_init ();
curl_setopt ($ch, Curlopt_url, $url);
curl_setopt ($ch, Curlopt_returntransfer, 1);
curl_setopt ($ch, Curlopt_post, 1);
curl_setopt ($ch, Curlopt_postfields, $post _data);
$output =curl_exec ($ch);
Curl_close ($ch);
Print_r ($output);
Then how to accept PHP in the JSP $post_data
And then how to show it?
Beg for your knees ...
Reply to discussion (solution)
form submission, how to do it
This has nothing to do with PHP, you can use get http://xxxx/xx?a=1&b=2 or post (your example), JSP how to take
If you do not use PHP code on the page, directly with $_post or $_get accept echo is out, if the code and the page is separated by the smarty, the background assigned to the page.
Finally all o .... In fact, I think a little silly .... Thank you for your answer.