Java Beans
Property of a bean
Get and set methods
The <jsp:useBean> tag
The <jsp:getProperty> tag
The <jsp:setProperty> tag
Scope of a bean
(page, request, session, application)
<jsp:setProperty name="xxx" property="*"/>
Relational database
Why use a database instead of files
Tables in a database
MySQL
Basic SQL commands:
SELECT, INSERT, UPDATE, DELETE
SQL table types:
INT, VARCHAR(M), TEXT, TIMESTAMP
Primary key for a database table
Index for a database table
Basic JDBC functions:
connection.createStatement()
statement.executeUpdate()
statement.executeQuery()
resultSet.next()
resultSet.getString(colNum)
resultSet.getString(colName)
JSP custom tags
Taglibs
How to deploy a taglib
The <%@ taglib %> directive
Tag prefixes for custom tags
TLD file for a taglib
Using attributes in custom tags
Jar (Java ARchive) files
What to do with a jar file
|
Tomcat server-managed security
Using a user database with Tomcat
War (Web ARchive) files
What to do with a war file
Struts
When to use Struts
MVC architecture
Struts View components
JSP pages, Struts taglibs,
ActionForm classes,
ActionErrors
Struts Controller components
ActionServlet, Action classes,
ActionMapping
Struts Model components
How the components all relate
What's in struts-config.xml?
How forms are processed in Struts
Form validation
The <html:errors> tag
Where to put business logic
Internationalization (I18n)
Resources for a Java program
Properties files
Locales (such as en, es, de, fr)
The <bean:message> tag
How big projects are different
Designing a web application
Use cases
|