Java Reference
In-Depth Information
JSP files are Web pages with one or more sections of Java code, called a
scriptlet , embedded within the HTML. Many text editors or specialized Web
page editors can be used to create these files; however, not all Web page editors
will properly handle the scriptlets included in the JSP files. TextPad can edit JSP
files, although color highlighting of code is not configured by default. You can
customize TextPad by creating or using syntax files for a particular programming
or scripting language, many of which are available for download from the
TextPad Web site. Use TextPad Help as described in Appendix C to obtain
instructions for installing TextPad syntax files and enabling syntax highlighting
for JSP files.
Calling a Servlet from an HTML Form
A static Web page, as shown in Figure 12-6, provides the initial user interface
for the WebStocks Web application. After the Web page is loaded in the user's
browser, it displays an HTML form where the user can enter a user ID and pass-
word and then click a Log on button to submit that data to the Web server.
static Web page provides
initial user interface for
WebStocks Web application
form submit button,
named Log on,
submits input data
HTML form
FIGURE 12-6
Search WWH ::




Custom Search