Saturday 14 March 2015

jsp info attribute


'info' attribute defines a string that is incorporated into the translated page, that can subsequently be obtained from the page’s implementation of getServletInfo method.

<%@page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<%@page info="Simple jsp page" %>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Hello World</title>
    </head>
    <body>
        <h1> 
           <%=this.getServletInfo()%>
        </h1>
        
    </body>
</html>
 
Sample Output



Prevoius                                                 Next                                                 Home

No comments:

Post a Comment