JSP Hello World !
Λεπτομέρειες
- Λεπτομέρειες
- Κατηγορία: jsp
- Δημιουργηθηκε στις Τρίτη, 31 Ιανουαρίου 2012 15:11
- Τελευταία Ενημέρωση στις Τετάρτη, 04 Απριλίου 2012 09:25
- Δημοσιεύτηκε στις Τρίτη, 31 Ιανουαρίου 2012 15:11
- Γράφτηκε από τον/την Administrator
- Εμφανίσεις: 11565
Write "Hello World" with JSP
<HEAD>
<TITLE>hello jsp</TITLE>
<!-- the variable, message, is declared and initialized -->
<%!
String message = "Hello, World, from JSP";
%>
</HEAD>
<BODY>
<!-- the value of the variable, message, is inserted between h2 tags -->
<h2><font color="#AA0000"><%= message%></font></h2>
<h3><font color="#AA0000">
<!-- the java.util.Date method is executed and the result inserted between h3 tags -->
<%= new java.util.Date() %>
</font></h3>
</BODY>
</HTML>