Beruflich Dokumente
Kultur Dokumente
Servlet Servlet /
Servlet
Static page
Struts
HTTP Request
Example
Functionality: input and display staff info (first
name, last name, position)
Workflow
If the staff info is new, return to home page
If the staff info already exists in the db, error 1
If the staff info conflicts with data in db, error 2
r 1
ro
er
Inp
ut
General steps to build web app
using Struts
JSP pages
Form Bean
Action
Workflow
taglib
Java libraries we can use to facilitate JSP
programming,
custom tags, e.g. <html:form>
custom actions
<form-beans>
<form-bean type="InputForm" name="form"/>
</form-beans>
HTTP Request
<action
path="/inputdata"
type="InputAction"
validate="false"
scope="request"
input="idata.jsp“
……
</action> Bean is valid
for these JSP’s