










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This is an Introductory course of Java Web Programming focusing on writing maintainable extensible code, methods of debugging, logging and profiling. The Java Technology used is J2EE an Enterprise Application Development tool. This lecture includes: Tag, Library, Standard, JSP, Writer, SQL, MVC, Architecture, DataSource, XML, Parsing, XPath
Typology: Slides
1 / 18
This page cannot be seen from the preview
Don't miss anything!











Evaluates an expression and outputs the result of the evaluation to the current JspWriter object If the result of the evaluation is a java.io.Reader object, data is first read from the Reader object and then written into the current JspWriter object improved performance Syntax <c:out value="value" [escapeXml="{true|false}"] [default="defaultValue"] /> If escapeXml is true, escape character conversion
| |
.jsp Database Dynamic Content
Resource bundle identified by context parameter Beans SQL Business Logic
.jsp Database
Query the database <sql:query> Easy access to result set Result ResultSupport Update the database <sql:update> <sql:transaction>
Example: <sql:setDataSource> for setting a table using PointBase <sql:setDataSource var="example" driver="com.pointbase.jdbc.jdbcUniversalDriver" url="jdbc:pointbase:server://localhost: 1092 /jstlsample; create=true" />
<sql:transaction dataSource="${example}"> <sql:update var="newTable"> create table mytable ( nameid int primary key, name varchar( 80 ) ) </sql:update> <sql:update var="updateCount"> INSERT INTO mytable VALUES ( 1 ,'Paul Oakenfold') </sql:update> <sql:update var="updateCount"> INSERT INTO mytable VALUES ( 2 ,'Timo Maas') </sql:update> ... <sql:query var="deejays"> SELECT * FROM mytable </sql:query> </sql:transaction>
Flow control <x:choose>, <x:when>, <x:if>, <x:otherwise> Iteration <x:forEach> General purpose <x:out> <x:set> Parsing and Transformation <x:parse> <x:transform> with <x:param> subtags
Example XML Document