'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>
No comments:
Post a Comment