How do i go about converting this code to JSP
Any help appreciated..!
$fp = fsockopen(\"www.example.com\", 80, $errno, $errstr, 30); if (!$fp) {
You can use the JSTL taglib for this. First declare the namespace at the top of the jsp using
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
And then use the c:import tag to include content from the specified url: