Java Server Pages (JSP) : November 2020
Java Server Pages (JSP) : November 2020
net/publication/346016755
CITATIONS READS
0 4,950
1 author:
Nilu Singh
K L University
115 PUBLICATIONS 296 CITATIONS
SEE PROFILE
All content following this page was uploaded by Nilu Singh on 19 November
2020.
<html>
<body>
<% out.print("welcome to jsp"); %>
</body>
</html>
Example ( J S P expression tag)
<html>
<body>
<% out.print("welcome to jsp"); %>
</body>
</html>
J S P Declaration Tag
The jsp scriptlet tag can only declare The jsp declaration tag can declare
variables not methods. variables as well as methods.
The declaration of scriptlet tag is placed The declaration of jsp declaration tag is
inside the _jspService() method. placed outside the _jspService() method.
J S P Standard Tag Library (JSTL)
• T h e JSP Standard Ta g Library (JSTL) is
a collection of tag libraries that
implement g e n e r a l - purpose functionality
common to many Web applications.
Note: We will install Java and Jboss s e r v e r on
our machine a s they a r e p r e - requisites to run a
JSP.
Apache Tomcat Server
software
Cont…
Example languages:
1. JavaScript (primarily)
2. HTML*
3. CSS*
4. Any language running on a client device that
interacts with a remote service is a
client- side language.
HTML and CSS aren't really "programming
languages" p e r - se. T h e y a r e markup syntax
by which the Client r e n d e r s the page for the
User.
Server-side Programming
• S e r v e r - side programming, is the
general name for the kinds of programs
which are run on the Server.
Uses:
1. P r o c e s s u s e r input.
2. Display pages.
3. Structure web applications.
4. Interact with permanent storage (SQL, files).
Cont…
Example Languages:
1. PHP
2. Python
3. ASP.Net in C#, C + + , or Visual Basic.
4. Nearly any language ( C + + , C#, Java).
T h e s e w e r e not designed specifically for
the task, but a r e now often used for
application- level web services.
What can you do on the server-
side
Efficient storage and delivery of information
Customised user experience
Controlled access to content
Store session/state information
Notifications and communication
Data analysis
Apache Tomcat