Java Server Pages Example Programs









Publication 4164 (Rev. 10-2021)

The Software Developer Kit (SDK) provides compiled binaries in Java (v1.6) and . o Business Rule X0000-010 - For each SubmissionID provided in the ...
p


Java Server Pages Example Programs

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>. <%@ page import = "java.util.*" %>. <html>. <head> <title> DateTime </title> </head>.
Bsc(P) VI InternetTechnologies


NetIQ eDirectory Installation Guide

run it you must install the latest version of Oracle Java (1.8 or above). upgrade any older version of Java by installing the patch upgrades available.
edir install


XML Error Troubleshooting Guide December 4 2009

Azar 13 1388 AP The Java API for XML Processing (JAXP) enables applications to parse
xml error troubleshooting guide





A Formalization of Java's Concurrent Access Modes

In this paper we present the first formalization of Java's access modes. X000. Sometimes. Sometimes. X001. Sometimes. Sometimes. X002. Sometimes.


LCDI

(x000 USD). Location. (Province Regency/City) Central Java Province18. 2020. 5
Climate Resilience Funding


Quantitative seismic reservoir characterisation: A model-based

approach for the Sampang PSC East Java


Mitsubishi Melsec-Q Ethernet (UDP) Driver

Device. Bit Address. Word Address. 16 bit 32 bit. Input Relay. X0000-XFFFF. X0000-XFFF0*1. Output Relay. Y0000-YFFFF. Y0000-YFFF0*1. Internal Relay.
MitsubishiMelsecQUDPea





Op_SysProg 31.book

Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
E


unfccc

Farvardin 27 1400 AP rainfall during the dry season in June-August
IndonesiaBUR FINAL REPORT


210150 Java Server Pages Example Programs

Java Server Pages

Example Programs

Rakhi Saxena (Internet Technologies) 1

Java Scriptlet in JSP

Rakhi Saxena (Internet Technologies) 2

Welcome User with message

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ page import = "java.util.*" %> DateTime
Enter your name:
<% Date date = new Date(); int hour = date.getHours(); if (hour >= 0 && hour <=11) out.print("Good Morning! "); if (hour >= 12 && hour <=17) out.print("Good Afternoon!"); if (hour >= 18 && hour <=23) out.print("Good Evening!");

Rakhi Saxena (Internet Technologies) 3

datetime.jsp

Using JSTL ( Core Library)

Rakhi Saxena (Internet Technologies) 4

Print a Pattern

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

Rakhi Saxena (Internet Technologies) 5

1 3 5 1 3 5

1 3 5 7

1 3 5 7

1 3 5 7 9

1 3 5 7 9

1 3 5 7 9 11 pattern.jsp

Calculator Program

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> JSTL Operate Program
First Number :

Second Number:

Add
Subtract
Multiply
Divide



Rakhi Saxena (Internet Technologies) 6

Calculator Program (contd)

Result:

Rakhi Saxena (Internet Technologies) 7

operate.jsp

Using JSTL ( Function Library)

Rakhi Saxena (Internet Technologies) 8

Demonstrate String Functions

<%@ page contentType="text/html" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

Java Server Pages

Example Programs

Rakhi Saxena (Internet Technologies) 1

Java Scriptlet in JSP

Rakhi Saxena (Internet Technologies) 2

Welcome User with message

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ page import = "java.util.*" %> DateTime
Enter your name:
<% Date date = new Date(); int hour = date.getHours(); if (hour >= 0 && hour <=11) out.print("Good Morning! "); if (hour >= 12 && hour <=17) out.print("Good Afternoon!"); if (hour >= 18 && hour <=23) out.print("Good Evening!");

Rakhi Saxena (Internet Technologies) 3

datetime.jsp

Using JSTL ( Core Library)

Rakhi Saxena (Internet Technologies) 4

Print a Pattern

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

Rakhi Saxena (Internet Technologies) 5

1 3 5 1 3 5

1 3 5 7

1 3 5 7

1 3 5 7 9

1 3 5 7 9

1 3 5 7 9 11 pattern.jsp

Calculator Program

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> JSTL Operate Program
First Number :

Second Number:

Add
Subtract
Multiply
Divide



Rakhi Saxena (Internet Technologies) 6

Calculator Program (contd)

Result:

Rakhi Saxena (Internet Technologies) 7

operate.jsp

Using JSTL ( Function Library)

Rakhi Saxena (Internet Technologies) 8

Demonstrate String Functions

<%@ page contentType="text/html" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>