Created
January 11, 2018 07:01
-
-
Save raunakhajela/e9c6980bb1c2b035e706d3bc6a45cdfd to your computer and use it in GitHub Desktop.
JSP: Declarations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--They allow us to declare a method in the JSP page. You can call the method in the same JSP page--> | |
<html> | |
<body> | |
<%! | |
String makeItLower(String data){ | |
return data.toLowerCase(); | |
} | |
%> | |
Lower case "Hello World": <%= makeItLower("Hello World") %> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment