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
<!--scriplets let us insert 1 to many lines of Java code. Scriplets make use of out.println() to print java code--> | |
<html> | |
<body> | |
<h3>Hello World</h3> | |
<% | |
for(int i=1; i<=5; i++){ | |
out.println("</br>I really luv2code: " + i); | |
} | |
%> | |
</body> |
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
<html> | |
<body> | |
Converting a string to uppercase: <%= new String("Hello World").toUpperCase() %> | |
<br><br> | |
25 x 4 = <%= 25*4 %> | |
<br><br> | |
Is 75 less than 69? <%= 75 < 69 %> | |
</body> | |
</html> |
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
<html> | |
<body> | |
<h3>Hello World</h3> | |
<p>The time on the server is <%= new java.util.Date() %></p> | |
</body> | |
</html> |
NewerOlder