Unit-11: JSP Programming
1.Write a JSP program to display the current server time. Jsp program: <HTML> <BODY> <% java.util.Calendar now = java.util.Calendar.getInstance(); int hour = now.get( java.util.Calendar.HOUR_OF_DAY); int minute = now.get( java.util.Calendar.MINUTE); int second=now.get( java.util.Calendar.SECOND); %> <h1>Current Server Time</h1> <% out.println(hour +”:”+minute+”:”+second); %> </BODY> </HTML> 2.JSP Implicit Object Crete a HTML form with two textfied for […]
Continue Reading