Class 2 |
Intermediate Java 30-IT-397 |
|
Examples
-
HTML Version:
<% "Shopping cart total: " + total %>
-
XML Version:
<jsp:expression>
"Shopping cart total: " + total
</jsp:expression>
Sending parameters to methods
-
You can pass parameters to object methods with this syntax:
<jsp:setProperty name "customer" property "userID" value "Martindale">
-
This is equivalent to customer.setUserID("Martindale");
-
More on this to come.
JSP Scriptlets

Created by: Brandan Jones
December 17, 2001