Javaee59 03 .pdf
File information
Original filename: Javaee59-03.pdf
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:56, from IP address 77.136.x.x.
The current document download page has been viewed 338 times.
File size: 343 KB (1 page).
Privacy: public file
Share on social networks
Link to this file download page
Document 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="cisi.bankManagement.entities.User" scope="session"/>
<%-- Initialisation des valeurs du bean --%>
<jsp:setProperty property="lastName" name="aUser" value="Wallez"/>
<jsp:setProperty property="firstName" name="aUser" value="Jeremy"/>
<html>
<body>
<%-- Restitution des valeurs du bean --%>
LastName : <jsp:getProperty name="aUser" property="lastName"/><br/>
FisrtName : <jsp:getProperty name="aUser" property="firstName"/>
</body>
</html>

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