Javaee59 03 (PDF)




File information


Title: Microsoft Word - JSP-code.docx
Author: Lag

This PDF 1.7 document has been generated by / Microsoft: Print To PDF, and has been sent on pdf-archive.com on 27/08/2017 at 13:59, from IP address 77.136.x.x. The current document download page has been viewed 268 times.
File size: 348.66 KB (1 page).
Privacy: public file




Document preview - Javaee59-03.pdf - Page 1/1





File preview


JSP-CODE
Directive
Inclusion:
<%@ include file="printDate.jsp" %> et <%@ taglib prefix=”monPrefix” uri=”file.tld”%>
Import : <%@ page import="java.util.Date" %>
Langage : <%@ page language="java" %>
Type de contenu : <%@ page contentType="text/html; charset=ISO-8859-1"%>
Encodage :< %@ page pageEncoding="ISO-8859-1"%>
Redirection : <%@ page errorPage="error.jsp" %

Commentaire :
<!-- comment -->
<%-- comment --%> (côté serveur)

Déclaration :
<%! int i = 0; %>
<% void increment() {
i++
} %>

Script:
<% for (int i=0;i<10;i++){ %>
Bonjour !
<% } %>

Expression :
<% out.println("coucou"); %> équivaut à <%= "coucou" %>

Bean
<%-- Declation du bean aUser --%>
<jsp:useBean id="aUser" class="com.square.entities.User" scope="session"/>
<%-- Initialisation des valeurs du bean --%>
<jsp:setProperty property="lastName" name="aUser" value="Brown"/>
<jsp:setProperty property="firstName" name="aUser" value="Bob"/>
<html>
<body>
<%-- Restitution des valeurs du bean --%>
LastName : <jsp:getProperty name="aUser" property="lastName"/><br/>
FisrtName : <jsp:getProperty name="aUser" property="firstName"/>
</body>
</html>






Download Javaee59-03



Javaee59-03.pdf (PDF, 348.66 KB)


Download PDF







Share this file on social networks



     





Link to this page



Permanent link

Use the permanent link to the download page to share your document on Facebook, Twitter, LinkedIn, or directly with a contact by e-Mail, Messenger, Whatsapp, Line..




Short link

Use the short link to share your document on Twitter or by text message (SMS)




HTML Code

Copy the following HTML code to share your document on a Website or Blog




QR Code to this page


QR Code link to PDF file Javaee59-03.pdf






This file has been shared publicly by a user of PDF Archive.
Document ID: 0000664215.
Report illicit content