Thursday, December 16, 2010

Reading web-page made easy using JSP

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<html>
    <body>
        <c:import url="http://www.yahoo.com" var="newstuff"/>
        <c:out value="${newstuff}"/>
    </body>
</html>

It gives the content of the page into a variable called newstuff…

No comments:

Post a Comment