Saturday 14 March 2015

jsp Language attribute

language attribute defines the scripting language to be used in scriptlets, expression scriptlets, and declarations within the body of the translation unit. In JSP2.2 the valid value for this attribute is java. In future, this attribute may support other languages. Default language for this attribute is java.

<%@page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Hello World</title>
    </head>
    <body>
        <h1>Hello World!</h1>
    </body>
</html>


Output
Prevoius                                                 Next                                                 Home

No comments:

Post a Comment